# Anyone have a simple step by step guide to setting up an app and getting OAuth working

**URL:** <https://api-discuss.freeagent.com/t/anyone-have-a-simple-step-by-step-guide-to-setting-up-an-app-and-getting-oauth-working/315>\
**Category:** Uncategorized\
**Created:** [20 May 2012 13:30 UTC](https://api-discuss.freeagent.com/t/anyone-have-a-simple-step-by-step-guide-to-setting-up-an-app-and-getting-oauth-working/315 "2012-05-20T13:30:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewWoody](https://api-discuss.freeagent.com/letter_avatar_proxy/v4/letter/a/b19c9b/32.png) [@AndrewWoody](https://api-discuss.freeagent.com/u/AndrewWoody)\
**Post date:** [20 May 2012 13:30 UTC](https://api-discuss.freeagent.com/t/anyone-have-a-simple-step-by-step-guide-to-setting-up-an-app-and-getting-oauth-working/315/1 "2012-05-20T13:30:13Z")

</div>

Unfortunately the information around using OAuth, setting up your apps  
and testing with Google Playground are not well written and impossible  
to follow as a simple guide.

I’ve developed a really simple C# app that makes an application/xml  
content type request to get expense details back in XML format so that  
I can do my P11d - unfortunately with API v2 the old method of  
authentication won’t work and I need to mess around with OAUTH.

Really just looking for a simple step by step guide with screenshots  
explaining how to set it up so that I can get the appropriate  
authentication token to allow my C# app to authenticate.

Thanks in advance

Andrew

---

<div class="post-metadata">

**Author:** ![Nic\_Wise](https://api-discuss.freeagent.com/user_avatar/api-discuss.freeagent.com/nic_wise/32/58_2.png) [@Nic\_Wise](https://api-discuss.freeagent.com/u/Nic_Wise)\
**Post date:** [20 May 2012 21:51 UTC](https://api-discuss.freeagent.com/t/anyone-have-a-simple-step-by-step-guide-to-setting-up-an-app-and-getting-oauth-working/315/2 "2012-05-20T21:51:07Z")

</div>

Hi Andrew

I’ve been doing a .NET API for FreeAgent, but I’ve been hitting a few  
snags (see other posts).

However, for read only, it should work, and the oauth bit DOES work.

> **[GitHub - nicwise/FreeAgent: A basic .NET client for FreeAgent.com (work in...](https://github.com/nicwise/FreeAgent)**
>
> A basic .NET client for FreeAgent.com (work in progress) - GitHub - nicwise/FreeAgent: A basic .NET client for FreeAgent.com (work in progress)

It uses RestSharp to do the communication, and at the moment, the  
oauth bits (keys, token refresh etc) work, as does contacts. I’ve  
mapped most of the models, but not got to the get/post/put/delete for  
anything more then contacts, company and project.

If you just needed read-only on some stuff, it wouldn’t be hard to  
show-horn it in. I’m trying to get read/write/list/delete/update all  
working at the same time.

Give me a yell if you get it working. I’m focused on getting it going  
in MonoTouch, but I work on it in both VS2010 at work, and MonoDevelop  
at home.

NicOn Sun, May 20, 2012 at 2:30 PM, AndrewWoody [woody1664@gmail.com](mailto:woody1664@gmail.com) wrote:

> Unfortunately the information around using OAuth, setting up your apps  
> and testing with Google Playground are not well written and impossible  
> to follow as a simple guide.
> 
> I’ve developed a really simple C# app that makes an application/xml  
> content type request to get expense details back in XML format so that  
> I can do my P11d - unfortunately with API v2 the old method of  
> authentication won’t work and I need to mess around with OAUTH.
> 
> Really just looking for a simple step by step guide with screenshots  
> explaining how to set it up so that I can get the appropriate  
> authentication token to allow my C# app to authenticate.
> 
> Thanks in advance
> 
> Andrew
> 
> –  
> You received this message because you are subscribed to the Google Groups “FreeAgent API” group.  
> To post to this group, send email to [freeagent\_api@googlegroups.com](mailto:freeagent_api@googlegroups.com).  
> To unsubscribe from this group, send email to [freeagent\_api+unsubscribe@googlegroups.com](mailto:freeagent_api+unsubscribe@googlegroups.com).  
> For more options, visit this group at [http://groups.google.com/group/freeagent\_api?hl=en](http://groups.google.com/group/freeagent_api?hl=en).

Nic Wise  
t. +44 7788 592 806 | @fastchicken | [Nic Wise - Tend Health Ltd | LinkedIn](http://www.linkedin.com/in/nicwise)  
b. [http://www.fastchicken.co.nz/](http://www.fastchicken.co.nz/)

Earnest: Self-employed? Track your business expenses and income.  
[http://earnestapp.com](http://earnestapp.com)  
Nearest Bus: find when the next bus is coming to your stop. [http://goo.gl/Vcz1p](http://goo.gl/Vcz1p)  
mobileAgent (for FreeAgent): get your accounts in your pocket.  
[http://goo.gl/IuBU](http://goo.gl/IuBU)  
Trip Wallet: Keep track of your budget on the go: [http://goo.gl/ePhKa](http://goo.gl/ePhKa)  
London Bike App: Find the nearest Boris Bike, and get riding! [http://goo.gl/Icp2](http://goo.gl/Icp2)
