<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">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<br>
      <br>
      <br>
       On 11/07/2014 2:06 p.m., Jolyon Smith wrote:<br>
    </div>
    <blockquote
cite="mid:CALXexOop0pWzKAjpnLATtPU_sAWCgGtH24kfeuiReH9satuh4g@mail.gmail.com"
      type="cite">
      <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">&lt;<a moz-do-not-send="true"
              href="mailto:rob@chreos.co.nz" target="_blank">rob@chreos.co.nz</a>&gt;</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 -&gt; Build XML &amp; command -&gt; OAuth
                sign -&gt; Http to Xero -&gt; Response -&gt; Delphi app<br>
                <br>
                I now have  <br>
                <br>
                Delphi app -&gt; Build XML &amp; command -&gt;  My
                custom PHP script -&gt; PHP OAuth sign using Xero
                framework -&gt; Http to Xero -&gt; Response -&gt; My
                Custom PHP script -&gt; 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 class=""><br>
                  <br>
                  <br>
                  <br>
                  On 11/07/2014 11:49 a.m., Alister Christie wrote:<br>
                </div>
              </div>
              <blockquote type="cite">
                <div class="">
                  <div dir="ltr">With regards to OAuth you could try
                    using <a moz-do-not-send="true"
                      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 moz-do-not-send="true" href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a>
Admin: <a moz-do-not-send="true" href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a moz-do-not-send="true" 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 moz-do-not-send="true"
                    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 moz-do-not-send="true"
              href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
            Admin: <a moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
            with Subject: unsubscribe<br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2014.0.4716 / Virus Database: 3986/7832 - Release Date:
        07/10/14</p>
    </blockquote>
    <br>
  </body>
</html>