Friday, October 25, 2013

Digest for adsense-api@googlegroups.com - 2 Messages in 2 Topics

Group: http://groups.google.com/group/adsense-api/topics

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Oct 24 09:13AM -0700  

    Well, this problem is about your specific environment and it doesn't look
    related with the API or the client library.
     
    Have you installed the JSON PHP extension?
     
    Cheers,
    Jose
     
     
     
    ---
    Jose Alcérreca
    Developer Relations
     
    Google UK Limited
    Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
    9TQ
    Registered in England Number: 3977902
     
     
    On Wednesday, 23 October 2013 18:24:46 UTC+1, Matteo Giampaolo wrote:

     

    Matteo Giampaolo <mgiampaolo@gmail.com> Oct 24 08:16AM -0700  

    HI,
     
    I'm trying to handle manually response for a token request (after previous
    step with authorization code request...succesfully)
    Here are my PHP code
     
    function post_req()
    {
     
    $postdata =(
    array(
    'code' => 'xxxx',
    'client_id' => 'xxx',
    'client_secret' => 'xxxxxxx',
    'redirect_uri' => 'xxxxx',
    'grant_type' => 'authorization_code'
    )
    );
     
    $result = http_post_fields("https://accounts.google.com/o/oauth2/token",
    $postdata);
     
    }
     
     
    but I receive a "invalid_grant" error
     
    Any idea?
    Thx
    Matteo

     

--
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adsense-api+unsubscribe@googlegroups.com.
To post to this group, send email to adsense-api@googlegroups.com.
Visit this group at http://groups.google.com/group/adsense-api.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment