# Looking for sample code

**URL:** <https://api-discuss.freeagent.com/t/looking-for-sample-code/341>\
**Category:** Uncategorized\
**Created:** [8 June 2012 20:45 UTC](https://api-discuss.freeagent.com/t/looking-for-sample-code/341 "2012-06-08T20:45:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vardas](https://api-discuss.freeagent.com/letter_avatar_proxy/v4/letter/v/f4b2a3/32.png) [@vardas](https://api-discuss.freeagent.com/u/vardas)\
**Post date:** [8 June 2012 20:45 UTC](https://api-discuss.freeagent.com/t/looking-for-sample-code/341/1 "2012-06-08T20:45:44Z")

</div>

Does anyone know where I might be able to get hold of some sample code  
for using the freeagent API using PHP?

In particular samples of how to add customers, invoices, and payments  
would be really useful. I find the freeagent API documentation  
impenetrable at the moment and am sure some sample code would help get  
me up to speed 🙂

---

<div class="post-metadata">

**Author:** ![Graeme\_Boyd](https://api-discuss.freeagent.com/letter_avatar_proxy/v4/letter/g/7bcc69/32.png) [@Graeme\_Boyd](https://api-discuss.freeagent.com/u/Graeme_Boyd)\
**Post date:** [11 June 2012 13:21 UTC](https://api-discuss.freeagent.com/t/looking-for-sample-code/341/2 "2012-06-11T13:21:44Z")

</div>

Hi Bill,

Tamlyn Rhodes sent a blog post about using PHP with the API to this mailing  
list a few months ago:

> **[Using the FreeAgent API with PHP and OAuth2](https://outlandish.com/blog/tutorial/freeagent-api-php-oauth2/)**
>
> FreeAgent, the online business accounting software that we use, has just released a new version of its developer API.

Kind regards,

GraemeOn 8 June 2012 21:45, vardas [bill.noble@vardas.com](mailto:bill.noble@vardas.com) wrote:

> Does anyone know where I might be able to get hold of some sample code  
> for using the freeagent API using PHP?
> 
> In particular samples of how to add customers, invoices, and payments  
> would be really useful. I find the freeagent API documentation  
> impenetrable at the moment and am sure some sample code would help get  
> me up to speed 🙂
> 
> –  
> 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).

Graeme Boyd  
Senior Software Engineer

Web. [freeagent.com](http://freeagent.com) [http://www.freeagent.com/](http://www.freeagent.com/) Blog. [The FreeAgent Blog - FreeAgent](http://freeagent.com/blog)  
Twitter. @freeagent [https://twitter.com/#!/freeagent](https://twitter.com/#!/freeagent) Facebook.  
[FreeAgent | Edinburgh](http://facebook.com/freeagentapp)

_SOFTWARE SATISFACTION AWARDS 2012_\* \* - \*Vote for  
us[http://www.clicktools.com/survey?iv=1c8dgs13zfxs7r&q1=FreeAgent%20Central%20Ltd&q2=FreeAgent&q3=Accounting%20and%20Finance](http://www.clicktools.com/survey?iv=1c8dgs13zfxs7r&q1=FreeAgent%20Central%20Ltd&q2=FreeAgent&q3=Accounting%20and%20Finance)  
\*\* \* (We’d be super stoked!)

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