[DUG] OAuth from Delphi
Jolyon Smith
jsmith at deltics.co.nz
Mon Jun 25 21:48:28 NZST 2012
If you have POST working this presumably means you have the XML correctly
included in the request as a form-value (one of the idiosynchracies of the
Xero API), and you presumably also have a basic signing implementation in
place and working.
This would suggest that you have perhaps simply overlooked something in
your code that is using PUT. Once you have the basic mechanics in place it
should all just fall into place. GET, PUT, POST, HEAD, TRACE, DELETE,
OPTION etc... it's all just HTTP requests - OAuth doesn't care which HTTP
command is being used as long as the message to sign is correctly formed
and correctly signed.
It might help if you posted your POST and PUT code for comparison (GET
would hurt too, but won't be as helpful as it doesn't include any XML
content with the request).
On 25 June 2012 18:41, Jeremy Coulter <jscoulter at gmail.com> wrote:
> I would be keen to hear what solution you find. I am about to look at Xero
> soon too :-)
>
> Jeremy
>
> -----Original Message-----
> From: delphi-bounces at listserver.123.net.nz
> [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Peter Ingham
> Sent: Monday, 25 June 2012 17:07
> To: delphi at listserver.123.net.nz
> Subject: [DUG] OAuth from Delphi
>
> I'm trying to use an OAuth interface (Xero) from Delphi & running into
> problems using PUT requests (POST and GET are working fine).
>
> There is not a lot of info about for Delphi and OAuth & none I've
> located ever mentions PUT requests. Most is for Twitter (which uses GET
> & POST).
>
> If anyone has experience in this area, I'd love to hear from you!!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20120625/dcce16da/attachment.html
More information about the Delphi
mailing list