<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 Cameron  <br>
      <br>
      Sorry to bug you but....  I have the code installed and compiling
      however I am a bit unsure as to the process involved.<br>
      <br>
      For Public apps you go through a process of logging in and getting
      a token.  <br>
      <br>
      For private applications do you just call the API you want and
      encode the call using 'OAuthSignRequest(fHTTP.Request, 'POST',
      lURL);' or do you need to do some sort of log in as well?<br>
      <br>
      In the OAuthSignRequest method there are calls to a function
      called ProcessTags( as below...<br>
      <br>
         conkey    := ProcessTags(OAuthConsumerKey,    Locals, Partner);<br>
          consecret := ProcessTags(OAuthConsumerSecret, Locals,
      Partner);<br>
          tok       := ProcessTags(OAuthTokenKey,       Locals,
      Partner);<br>
          toksecret := ProcessTags(OAuthTokenSecret,    Locals,
      Partner);<br>
      <br>
      I guess this function would be in the classFloCommon.pas (not
      included) that we 'can easily replace'.  Unfortunately I have no
      idea what this function does or what its inputs are asside from it
      returning a string and that all the parameters are globals !  Any
      hints?<br>
      <br>
      Sorry to be a pain but this OAuth stuff is like pulling teeth. <br>
      <br>
      <br>
      Cheers<br>
      Rob<br>
      <br>
      <br>
      <br>
      On 8/07/2014 9:54 a.m., Cameron Hart wrote:<br>
    </div>
    <blockquote
      cite="mid:91E6603FA041C54DB7F4371D8F23C8630B61F947@FNZEX.flow.net.nz"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-NZ;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">this

            code has been shared with Xero a while ago on their forum. 
            there’s a copy on <a moz-do-not-send="true"
              href="ftp://ftp.flow.net.nz/RELEASE/Code/">ftp://ftp.flow.net.nz/RELEASE/Code/</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p> </o:p></span></p>
        <table class="MsoNormalTable" style="width:525.0pt"
          cellpadding="0" width="700" border="0">
          <tbody>
            <tr style="height:26.25pt">
              <td colspan="4" style="padding:0cm 0cm 0cm
                0cm;height:26.25pt">
                <p class="MsoNormal"><b><span
                      style="font-size:11.0pt;font-family:&quot;Trebuchet
                      MS&quot;,&quot;sans-serif&quot;;color:#122029">Cameron

                      Hart </span></b><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr>
              <td style="width:17.25pt;padding:0cm 0cm 0cm 0cm"
                width="23"><br>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><b><span
                      style="font-size:9.0pt;font-family:&quot;Trebuchet
                      MS&quot;,&quot;sans-serif&quot;;color:#92C75F">Flow

                      Software Limited </span></b><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td rowspan="4" style="width:3.75pt;padding:0cm 0cm 0cm
                0cm" valign="bottom" width="5">
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><img
                      id="_x0000_i1026"
                      src="cid:part2.09000908.06080805@chreos.co.nz"
                      width="1" border="0" height="55"></span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm"><br>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm"><br>
              </td>
              <td rowspan="4" style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><img
                      id="_x0000_i1025"
                      src="cid:part3.03090008.08080306@chreos.co.nz"
                      alt="Flow" width="158" border="0" height="38"></span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr>
              <td style="padding:0cm 0cm 0cm 0cm"><br>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><span
                    style="font-size:8.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#122029">PO
                    Box 302 768, North Harbour </span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><b><span
                      style="font-size:8.0pt;font-family:&quot;Trebuchet
                      MS&quot;,&quot;sans-serif&quot;;color:#92C75F">P </span></b><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><span
                    style="font-size:8.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#122029">+64 9
                    476 3569</span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr>
              <td style="padding:0cm 0cm 0cm 0cm"><br>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><span
                    style="font-size:8.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#122029">Auckland

                    0751, New Zealand </span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><b><span
                      style="font-size:8.0pt;font-family:&quot;Trebuchet
                      MS&quot;,&quot;sans-serif&quot;;color:#92C75F">M </span></b><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><span
                    style="font-size:8.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#122029">+64
                    21 222 3569 </span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr>
              <td style="padding:0cm 0cm 0cm 0cm"><br>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><a
                      moz-do-not-send="true"
                      href="http://www.flowsoftware.co.nz"><span
                        style="font-size:8.0pt;font-family:&quot;Trebuchet
                        MS&quot;,&quot;sans-serif&quot;;color:#122029">www.flowsoftware.co.nz

                      </span></a></span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><b><span
                      style="font-size:8.0pt;font-family:&quot;Trebuchet
                      MS&quot;,&quot;sans-serif&quot;;color:#92C75F">E </span></b><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:0cm 0cm 0cm 0cm">
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><a
                      moz-do-not-send="true"
                      href="mailto:cameron.hart@flowsoftware.co.nz"><span
                        style="font-size:8.0pt;font-family:&quot;Trebuchet

                        MS&quot;,&quot;sans-serif&quot;;color:#122029">cameron.hart@flowsoftware.co.nz

                      </span></a></span><span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"> </span><span
            style="font-size:9.0pt;font-family:&quot;Trebuchet
            MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
        <table class="MsoNormalTable" style="width:487.5pt"
          cellpadding="0" width="650" border="0">
          <tbody>
            <tr style="height:26.25pt">
              <td style="padding:0cm 0cm 0cm 0cm;height:26.25pt">
                <p class="MsoNormal"><span
                    style="font-size:7.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#122029">This
                    message is intended for the addressee named above.
                    It may contain privileged or confidential
                    information. If you are not the intended recipient
                    of this message you must not use, copy, distribute
                    or disclose it to anyone. </span> <span
                    style="font-size:9.0pt;font-family:&quot;Trebuchet
                    MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span
style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#92C75F"> </span><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">
          </span><span
            style="font-size:8.0pt;font-family:Webdings;color:#92C75F">P</span><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">
          </span><span
            style="font-size:7.0pt;font-family:&quot;Trebuchet
            MS&quot;,&quot;sans-serif&quot;;color:#122029">Please
            consider the environment before printing this email</span><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">
          </span><span
            style="font-size:9.0pt;font-family:&quot;Trebuchet
            MS&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"> <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"
              lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"
            lang="EN-US"> <a class="moz-txt-link-abbreviated"
              href="mailto:delphi-bounces@listserver.123.net.nz">delphi-bounces@listserver.123.net.nz</a>
            [<a class="moz-txt-link-freetext"
              href="mailto:delphi-bounces@listserver.123.net.nz">mailto:delphi-bounces@listserver.123.net.nz</a>]
            <b>On Behalf Of </b>Jolyon Smith<br>
            <b>Sent:</b> Tuesday, 8 July 2014 9:14 a.m.<br>
            <b>To:</b> NZ Borland Developers Group - Delphi List<br>
            <b>Subject:</b> Re: [DUG] Xero private API (OAuth)<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">This was a nut I had to crack at Flow.  I
            was successful in this endeavour but I'm not at liberty to
            share the fruits of those labors.  If you ask nicely
            however, Cameron might be willing to help.<o:p></o:p></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
          <div>
            <p class="MsoNormal">On 8 July 2014 08:52, Robert Martin
              &lt;<a moz-do-not-send="true"
                href="mailto:rob@chreos.co.nz" target="_blank">rob@chreos.co.nz</a>&gt;

              wrote:<o:p></o:p></p>
            <p class="MsoNormal">Hi<br>
              <br>
              I have been doing some work with the Xero API and have
              public OAuth<br>
              working fine.  However I actually need to use the private
              API which<br>
              requires RSA-SHA1  which I believe just means RSA signing.
               Is that correct?<br>
              <br>
              If so does anyone have any code examples of RSA signing, I
              have found<br>
              LockBox 3 which is supposed to do it but I just cant get
              it installed,<br>
              although the source has a XE2 project group the code is
              full of errors !<br>
              <br>
              I am looking at using the openSLL dll calls to do it
              myself as an<br>
              alternative but sample code is scarce. I will continue
              looking but if<br>
              anyone has any pointers I would be grateful :)<br>
              <br>
              Cheers<br>
              Rob<br>
              <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<o:p></o:p></p>
          </div>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
      </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/7813 - Release Date:
        07/07/14</p>
    </blockquote>
    <br>
  </body>
</html>