Winforms Application Integration Help!

Hi there,

I’m a developer/provider of a winforms CRM system written in .NET, I
currently have interfaces for creating invoices and synchronising account
information between Sage Line 50 (using their sage data objects dll) and
KashFlow (using their XML web services)

One of my customers uses FreeAgent and rather than ask them to move to
KashFlow or Sage I’m looking into the feasibility of interfacing my system
to FreeAgent.

My application is a winforms application not a web application and looking
at the documentation for FreeAgent it appears to me that it’s geared around
providing a URL to a web application for the oauth authorisation??

KashFlow provides a WSDL allowing for rapid and easy integration from a web
or winforms application, can anyone please help me out or point me in the
right direction with this at all?

Sorry for sounding like a dullard but this oauth stuff is all new to me and
any help or “laymans terms” key points/sample code would be very very
helpful.

Many thanks,

Dean.

Hi Graeme,

Thanks for getting back to me, this gives me a point in the right direction
so i’ll getting reading/cracking

Many thanks,

Dean.On Friday, 27 February 2015 14:39:25 UTC, Graeme Boyd wrote:

Hi Dean,

OAuth can be used by a desktop application. I’d suggest you play with how
OAuth works for web apps first. You can read about it here:

FreeAgent Developer Dashboard

For a desktop application, send your user to FreeAgent’s OAuth
authorisation endpoint by opening the browser for them. Once the user
completes the authorisation request, they’ll be sent to a URL you’ve
defined. Rather than defining this URL as a remote HTTP server, you can
specify a local URL using a custom URI scheme which is unique to your
application. In Windows your app would register a custom URI scheme
handler to capture the authorisation code from this URL. Instructions from
Microsoft here:

Registering an Application to a URI Scheme (Windows) | Microsoft Learn

Once you have the code, you can then make an HTTP call to convert the code
to an access token and then access the user’s FreeAgent account.

This might all sound complicated but it’s very similar to what desktop and
mobile Facebook, Twitter, LinkedIn, Github, etc clients do.

Kind regards,

Graeme

On 26 February 2015 at 10:23, Dean Walker <chewabl...@gmail.com <javascript:>> wrote:

Hi there,

I’m a developer/provider of a winforms CRM system written in .NET, I
currently have interfaces for creating invoices and synchronising account
information between Sage Line 50 (using their sage data objects dll) and
KashFlow (using their XML web services)

One of my customers uses FreeAgent and rather than ask them to move to
KashFlow or Sage I’m looking into the feasibility of interfacing my system
to FreeAgent.

My application is a winforms application not a web application and
looking at the documentation for FreeAgent it appears to me that it’s
geared around providing a URL to a web application for the oauth
authorisation??

KashFlow provides a WSDL allowing for rapid and easy integration from a
web or winforms application, can anyone please help me out or point me in
the right direction with this at all?

Sorry for sounding like a dullard but this oauth stuff is all new to me
and any help or “laymans terms” key points/sample code would be very very
helpful.

Many thanks,

Dean.


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_ap...@googlegroups.com <javascript:>.
To post to this group, send email to freeag...@googlegroups.com
<javascript:>.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.


Graeme Boyd
Compliance Team Engineering Manager

Web. freeagent.com http://www.freeagent.com/ Blog. The FreeAgent Blog - FreeAgent
Twitter. @freeagent https://twitter.com/#!/freeagent Facebook.
FreeAgent | Edinburgh

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774

Hi Dean,

OAuth can be used by a desktop application. I’d suggest you play with how
OAuth works for web apps first. You can read about it here:

For a desktop application, send your user to FreeAgent’s OAuth
authorisation endpoint by opening the browser for them. Once the user
completes the authorisation request, they’ll be sent to a URL you’ve
defined. Rather than defining this URL as a remote HTTP server, you can
specify a local URL using a custom URI scheme which is unique to your
application. In Windows your app would register a custom URI scheme
handler to capture the authorisation code from this URL. Instructions from
Microsoft here:

Once you have the code, you can then make an HTTP call to convert the code
to an access token and then access the user’s FreeAgent account.

This might all sound complicated but it’s very similar to what desktop and
mobile Facebook, Twitter, LinkedIn, Github, etc clients do.

Kind regards,

GraemeOn 26 February 2015 at 10:23, Dean Walker chewabledrapery@gmail.com wrote:

Hi there,

I’m a developer/provider of a winforms CRM system written in .NET, I
currently have interfaces for creating invoices and synchronising account
information between Sage Line 50 (using their sage data objects dll) and
KashFlow (using their XML web services)

One of my customers uses FreeAgent and rather than ask them to move to
KashFlow or Sage I’m looking into the feasibility of interfacing my system
to FreeAgent.

My application is a winforms application not a web application and looking
at the documentation for FreeAgent it appears to me that it’s geared around
providing a URL to a web application for the oauth authorisation??

KashFlow provides a WSDL allowing for rapid and easy integration from a
web or winforms application, can anyone please help me out or point me in
the right direction with this at all?

Sorry for sounding like a dullard but this oauth stuff is all new to me
and any help or “laymans terms” key points/sample code would be very very
helpful.

Many thanks,

Dean.


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

Graeme Boyd
Compliance Team Engineering Manager

Web. freeagent.com http://www.freeagent.com/ Blog. The FreeAgent Blog - FreeAgent
Twitter. @freeagent https://twitter.com/#!/freeagent Facebook.
FreeAgent | Edinburgh

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774