<div dir="ltr">Rob, no worries.<br><br>The biggest problem I had with their documentation was the lack of fully worked examples, leaving far to much to guesswork/clairvoyance. And in some places their docs contained contradictory examples. You shouldn't have to figure out which 1 of N examples is actually the one you should be following! Grrr. :)</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 11 July 2014 15:34, Robert Martin <span dir="ltr"><<a href="mailto:rob@chreos.co.nz" target="_blank">rob@chreos.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi<br>
<br>
I really appreciated your help with this and I did consider
building it in D2007 to test the unicode thing (as suggested),
however I just couldn't justify spending any more time on it! <br>
<br>
While I am ranting about documentation...<br>
<br>
With regards to the Xero documentation, I didn't find the stuff I
looked at too bad. However I do think if you are going to provide
a PHP framework / class to access your services, you should at
least include a basic example of how it is used. The web site had
some calls but didn't show the class involved. I had to trace
back through the class source code to find out what the calls were
and what values I should pass. Kind of defeats the whole purpose
of black box programming!<br>
<br>
Cheers<br>
Rob<div><div class="h5"><br>
<br>
<br>
On 11/07/2014 2:06 p.m., Jolyon Smith wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Simply changing all relevant declarations
explicitly to ANSIChar / ANSIString in the Flow code should have
addressed any Unicode issues (similarly knocking up a p.o.c in
pre-Unicode version of Delphi would have determined if this were
the issue).
<div>
<br>
</div>
<div>I would not rule out the possibility that Xero have changed
something on their end which has broken the Flow code - it has
happened in the past and as ever with OAuth you get no clues
to go on as to what might be the problem. It doesn't help
that unless things have changed since I was wrestling with it,
the Xero documentation is not exactly a shining example of the
art (and from a quick look, it doesn't appear to have changed
at all since then).<br>
<br>
If that is the case then using their provided wrappers is
likely the most reliable approach, if a little "clunky". :)</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 11 July 2014 12:06, Robert Martin <span dir="ltr"><<a href="mailto:rob@chreos.co.nz" target="_blank">rob@chreos.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Alister<br>
<br>
I have my OAuth stuff working!!!!!<br>
<br>
After literally days of trying to get OAuth going in
Delphi I gave up. Instead I used the Xero provided
framework for PHP and built a PHP interface between my
Delphi app and it. So instead of doing; <br>
<br>
Delphi app -> Build XML & command -> OAuth
sign -> Http to Xero -> Response -> Delphi app<br>
<br>
I now have <br>
<br>
Delphi app -> Build XML & command -> My
custom PHP script -> PHP OAuth sign using Xero
framework -> Http to Xero -> Response -> My
Custom PHP script -> Delphi app.<br>
<br>
Works like a charm. obviously I have had to provide my
own security between the Delphi app and my custom
framework but that wasn't too difficult. I strogly
suspect the issues I was having were related to Unicode
Delphi and the non unicode code that I got from
Cameron. It was just too hard to debug as I couldn't
see what my output should be vs what it was.<br>
<br>
Cheers<br>
Rob
<div><br>
<br>
<br>
<br>
On 11/07/2014 11:49 a.m., Alister Christie wrote:<br>
</div>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">With regards to OAuth you could try
using <a href="http://www.tmssoftware.com/site/cloudpack.asp" target="_blank">TMS Cloud Pack</a>. I've used it
for connecting to TradeMe, although still required a
bit of work.
<div> <br>
</div>
<div>Alister.</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
<pre>_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
<br>
<fieldset></fieldset>
<br>
<p color="#000000" align="left">No virus found in this
message.<br>
Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
Version: 2014.0.4716 / Virus Database: 3986/7832 -
Release Date: 07/10/14</p>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a>
with Subject: unsubscribe<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
<br>
<fieldset></fieldset>
<br>
<p color="#000000" align="left">No virus
found in this message.<br>
Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
Version: 2014.0.4716 / Virus Database: 3986/7832 - Release Date:
07/10/14</p>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br></blockquote></div><br></div>