Searching for contacts via API?

Hi,

I’m writing some code to take invoices generated from Harvest (http://
getharvest.com) and create/sync them into FreeAgent. This is because
Harvest has much better handling for time tracking, and automatically
produces invoices from these times. FreeAgent is great at the accounts
part.

Anyway, using the APIs this is not really a problem except for clients
(contacts).

I can’t see a way to tie up clients in Harvest with contacts in
FreeAgent so that I can use the correct FreeAgent contact id when
creating the invoice.

There seems to be no “find contact by name” in the FA API. Is this the
case?

There’s nothing I can use at the Harvest side to add in the FA id of
the contact, no custom fields etc, so this is rather difficult. If I
could tie these up with a search on FA side, or a custom client field
on Harvest side, I could auto-sync clients between the two as well.

Here’s hoping I don’t have to stick with my hardcoded list of id
mappings…

Cheers

BTW… is there an iPad friendly version of mobileAgent coming any time soon?

No, sorry - not a big enough market for it :frowning:

Nic Wise
t. +44 7788 592 806 | @fastchicken | Nic Wise - Tend Health Ltd | LinkedIn
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2

BTW… is there an iPad friendly version of mobileAgent coming any time soon?

No, sorry - not a big enough market for it :frowning:

I dunno about that. The only other person I know who uses FreeAgent also has one. That’s 100% :slight_smile:

Marc

~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Founder @ http://noticelocal.com | Developer @ http://weceem.org
Member @ http://spottymushroom.com | Contributor @ http://grails.org
Twitter: http://twitter.com/wangjammer5 | Resumé: http://www.anyware.co.uk/marc/
Blog: http://www.anyware.co.uk | Grails Rocks: http://www.grailsrocks.com

I’ve not seen one - you’d have to get all the contacts, then parse
them on the client side.

Should be pretty easy to just hit /contacts, deserialize that into an
object, and do a local lookup each time. Even with 50 or so contacts,
that should only take a second or so, and you only need to do it once
for an import.On Mon, Sep 26, 2011 at 14:19, Marc Palmer lists@anyware.co.uk wrote:

Hi,

I’m writing some code to take invoices generated from Harvest (http://
getharvest.com) and create/sync them into FreeAgent. This is because
Harvest has much better handling for time tracking, and automatically
produces invoices from these times. FreeAgent is great at the accounts
part.

Anyway, using the APIs this is not really a problem except for clients
(contacts).

I can’t see a way to tie up clients in Harvest with contacts in
FreeAgent so that I can use the correct FreeAgent contact id when
creating the invoice.

There seems to be no “find contact by name” in the FA API. Is this the
case?

There’s nothing I can use at the Harvest side to add in the FA id of
the contact, no custom fields etc, so this is rather difficult. If I
could tie these up with a search on FA side, or a custom client field
on Harvest side, I could auto-sync clients between the two as well.

Here’s hoping I don’t have to stick with my hardcoded list of id
mappings…

Cheers


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.
To unsubscribe from this group, send email to freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/freeagent_api?hl=en.

Nic Wise
t. +44 7788 592 806 | @fastchicken | Nic Wise - Tend Health Ltd | LinkedIn
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2

I’ve not seen one - you’d have to get all the contacts, then parse
them on the client side.

Should be pretty easy to just hit /contacts, deserialize that into an
object, and do a local lookup each time. Even with 50 or so contacts,
that should only take a second or so, and you only need to do it once
for an import.

Yeah… but querying all contacts (could be lots more than 50) seems pretty wasteful :frowning:

Ideally there would be an “external id” field and you’d be able to get contacts based on that too. Harvest … well all such systems … should have this.

BTW… is there an iPad friendly version of mobileAgent coming any time soon?

Marc

~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Founder @ http://noticelocal.com | Developer @ http://weceem.org
Member @ http://spottymushroom.com | Contributor @ http://grails.org
Twitter: http://twitter.com/wangjammer5 | Resumé: http://www.anyware.co.uk/marc/
Blog: http://www.anyware.co.uk | Grails Rocks: http://www.grailsrocks.com

So do I, but the outlay vrs expected or possible income isn’t, sadly,
good enough (or good at all… :frowning: )On Mon, Sep 26, 2011 at 23:43, Marc Palmer lists@anyware.co.uk wrote:

On 26 Sep 2011, at 22:55, Nic Wise wrote:

BTW… is there an iPad friendly version of mobileAgent coming any time soon?

No, sorry - not a big enough market for it :frowning:

I dunno about that. The only other person I know who uses FreeAgent also has one. That’s 100% :slight_smile:

Marc

~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Founder @ http://noticelocal.com | Developer @ http://weceem.org
Member @ http://spottymushroom.com | Contributor @ http://grails.org
Twitter: http://twitter.com/wangjammer5 | Resumé: http://www.anyware.co.uk/marc/
Blog: http://www.anyware.co.uk | Grails Rocks: http://www.grailsrocks.com


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.
To unsubscribe from this group, send email to freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/freeagent_api?hl=en.

Nic Wise
t. +44 7788 592 806 | @fastchicken | Nic Wise - Tend Health Ltd | LinkedIn
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2