Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to send Token Request?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ellen  
View profile  
 More options Sep 17 2010, 12:53 pm
From: Ellen <ellen.hu...@gmail.com>
Date: Fri, 17 Sep 2010 09:53:35 -0700 (PDT)
Local: Fri, Sep 17 2010 12:53 pm
Subject: Re: How to send Token Request?
Marcelo,

Please ignore my question, it has been completed.

Thank you for your help.

Jing

On Sep 17, 9:32 am, Ellen <ellen.hu...@gmail.com> wrote:

> Marcelo,

> Oops I need pay attention.

> Now my request looks ok, but I received an error says "You do not have
> the proper permission to execute this operation." during the test
> donation access.

> I saw the token lifetime by default is set to 10 hours. So first I get
> the token value, then when I click the "Submit" button, send out
> donation request.

> here is the calling url---https://api-test.globalgiving.org/api/secure/givingservice/donations?...

> Am I doing something wrong?

> Thank you,

> ellen

> On Sep 16, 6:34 pm, "marcelo.barth" <marcelo.ba...@gmail.com> wrote:

> > Hi Ellen,

> > When copying and pasting our example XML, it looks like you deleted
> > one too many characters when getting rid of the carriage returns.

> > The donation element is not properly formatted, therefore, our parser
> > could not unmarshall your request.

> > donation> should be <donation>

> > The refcode element is there to allow you to track the request through
> > our system.

> > When you receive a response the refcode returned should match the one
> > you provided in your request.

> > The value to provide for refcode, is any unique identifier you want to
> > use, limited to 100 characters that is.

> > Marcelo

> > On Sep 16, 3:55 pm, Ellen <ellen.hu...@gmail.com> wrote:

> > > Marcelo,

> > > Now I get token!

> > > Well,  I had same "bad request" when I try my test donation.

> > > Here is the donation string which I copied from your site:
> > >    string xml = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>donation><refcode>123456789</refcode><transactionId>abc12 3</

> > > transactionId><email>john....@hotmail.com</email><amount>25</
> > > amount><project><id>1883</id></
> > > project><payment_detail><firstname>John</firstname><lastname>Doe</
> > > lastname><address>3380 Pearlman Avenue</address><address2>Suite 200</
> > > address2><city>Washington</city><state>DC</
> > > state><iso3166CountryCode>US</iso3166CountryCode><zip>20001</zip></
> > > donation>";

> > > Path ishttps://api-test.globalgiving.org/api/secure/givingservice/donation&a...

> > > One thing I am not sure is the refcode, in your site says" your
> > > external identifier for this request which is returned in the
> > > response, required (maximum 100 characters)". I am sending a donation
> > > request, and waiting for response; then what value should I put in?

> > > Thank you,
> > > ellen

> > > On Sep 16, 3:13 pm, "marcelo.barth" <marcelo.ba...@gmail.com> wrote:

> > > > Hi Ellen,

> > > > I just improved the error message to highlight the error that is
> > > > occurring. In your case there were 2 problems with the XML submitted.

> > > > 1) the xml declaration has an extra space in it at the end after the
> > > > '?': <?xml version=\"1.0\" encoding=\"UTF-8\"? > should be <?xml
> > > > version=\"1.0\" encoding=\"UTF-8\"?>

> > > > 2) there's an extra space after the closing '/' in the auth_request
> > > > element: </ auth_request> should be </auth_request>

> > > > Now the error messages will look like the following, highlighting the
> > > > problem:

> > > > 1)

> > > > <?xml version='1.0' encoding='UTF-8'?>
> > > > <error_response>
> > > >   <error_code>400</error_code>
> > > >   <errors>
> > > >     <error>
> > > >       <error_message>Problem with received message of content type
> > > > [application/xml]. Problem area [The XML declaration must end with "?>".]</error_message>

> > > >     </error>
> > > >   </errors>
> > > >   <status>Bad Request</status>
> > > > </error_response>

> > > > and

> > > > 2)

> > > > <?xml version='1.0' encoding='UTF-8'?>
> > > > <error_response>
> > > >   <error_code>400</error_code>
> > > >   <errors>
> > > >     <error>
> > > >       <error_message>Problem with received message of content type
> > > > [application/xml]. Problem area [The element type "auth_request" must
> > > > be terminated by the matching end-tag "&lt;/auth_request>".]</
> > > > error_message>
> > > >     </error>
> > > >   </errors>
> > > >   <status>Bad Request</status>
> > > > </error_response>

> > > > Hope that helps in your development.

> > > > Thanks,
> > > > Marcelo

> > > > On Sep 16, 12:34 pm, Ellen <ellen.hu...@gmail.com> wrote:

> > > > > Marcelo,

> > > > > The code will stop at   rsp = req.GetResponse();, and I am getting the
> > > > > same error-- bad request.

> > > > > have you counter this kind of issue before?

> > > > > what I could think is 1)request didn't well formed? 2)  request didn't
> > > > > match your end format? 3)or simply end won't pick a call from .net
> > > > > platform?

> > > > > Sorry to bother you again,

> > > > > ellen

> > > > > On Sep 16, 12:05 pm, "marcelo.barth" <marcelo.ba...@gmail.com> wrote:

> > > > > > Hi Ellen,

> > > > > > The accounts on our test server (api-test) were not fully replicated
> > > > > > with the accounts from production. It has been updated so you should
> > > > > > be able to retrieve a token now.

> > > > > > I ran a test using the credentials you provided and retrieved a token
> > > > > > successfully pointing to our test server.

> > > > > > Let us know if you experience anymore issues.

> > > > > > Thanks,
> > > > > > Marcelo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.