tarr11 / IntercomDotnet

Wrapper for Intercom.io API for .NET
Apache License 2.0
15 stars 14 forks source link

Added Companies post. #10

Closed durop closed 9 years ago

durop commented 9 years ago

Added companies post --> https://doc.intercom.io/api/#company-model

Example: string apikey = ""; string appid = ""; var client = IntercomClient.GetClient(appid, apikey); client.Companies.Post(new { company_id = "119", name = "Company new name" });

mgoodfellow commented 9 years ago

Hi @durop,

Thanks for the PR! Is it possible to also add the GET functions? From what I can see there is the option to list all companies, or list via tag/segment, and the 3rd would simply be view company?

Other than that, it looks great - but with these endpoints it would provide the completed set.

Let me know either way!

Thanks!

durop commented 9 years ago

Hi @mgoodfellow! I added the methods you mentioned. I didn't test the method GetCompanyList by tag_id but should work.

:+1:

mgoodfellow commented 9 years ago

Thanks @durop, LGTM :+1:

I will package a new version of the NuGet library

durop commented 9 years ago

Excelent! Already using the new version : D