Insightly / insightly-ruby

Ruby Library for the Insightly REST API
16 stars 45 forks source link

Any sample code? #13

Open kevinchugh opened 9 years ago

kevinchugh commented 9 years ago

Hi, can you provide hello world code? The link to the API isn't very useful. Thanks for any help.

jancel commented 9 years ago

+1

Sent from my iPhone

On Oct 21, 2014, at 8:28 AM, Kevin Chugh notifications@github.com wrote:

Hi, can you provide hello world code? The link to the API isn't very useful. Thanks for any help.

— Reply to this email directly or view it on GitHub.

brianinsightly commented 9 years ago

There's some sample code in the Google App Engine project.

The API is pretty straightforward. You can use the GET methods to request Insightly objects (e.g. contacts, opportunities, etc), and then inspect the object graph to see how it is structured. Then use POST and PUT operations to create and update objects via the API.

On Tue, Oct 21, 2014 at 9:28 AM, Kevin Chugh notifications@github.com wrote:

Hi, can you provide hello world code? The link to the API isn't very useful. Thanks for any help.

— Reply to this email directly or view it on GitHub https://github.com/Insightly/ruby/issues/13.

kevinchugh commented 9 years ago

Hi, the API is straightforward, the gem usage is not. I can only guess how you utilize the Insightly module defined in teh gem to gain velocity versus using the API directly. For the moment, I've just abandoned the gem an am using HTTParty but I'd love it if there were a simple "get users" demo code. I'll search for the app engine project, but any guidance would be appreciated.

brianinsightly commented 9 years ago

Hi Kevin,

Sorry the gem is not so straightforward. As I mentioned, one of our customers wrote this library and offered it to us. Unfortunately, I am not a Ruby expert (I mostly work in Python and .Net here).

I'll ask the developer if he has an sample code he can share.

Thanks,

Brian

On Tue, Oct 21, 2014 at 1:09 PM, Kevin Chugh notifications@github.com wrote:

Hi, the API is straightforward, the gem usage is not. I can only guess how you utilize the Insightly module defined in teh gem to gain velocity versus using the API directly. For the moment, I've just abandoned the gem an am using HTTParty but I'd love it if there were a simple "get users" demo code. I'll search for the app engine project, but any guidance would be appreciated.

— Reply to this email directly or view it on GitHub https://github.com/Insightly/ruby/issues/13#issuecomment-59962075.

jancel commented 9 years ago

The beauty of open source. Thanks Brian. I also need to demo functionality soon, so maybe I will give it a stab.

Sent from my iPhone

On Oct 21, 2014, at 12:22 PM, Brian McConnell notifications@github.com wrote:

Hi Kevin,

Sorry the gem is not so straightforward. As I mentioned, one of our customers wrote this library and offered it to us. Unfortunately, I am not a Ruby expert (I mostly work in Python and .Net here).

I'll ask the developer if he has an sample code he can share.

Thanks,

Brian

On Tue, Oct 21, 2014 at 1:09 PM, Kevin Chugh notifications@github.com wrote:

Hi, the API is straightforward, the gem usage is not. I can only guess how you utilize the Insightly module defined in teh gem to gain velocity versus using the API directly. For the moment, I've just abandoned the gem an am using HTTParty but I'd love it if there were a simple "get users" demo code. I'll search for the app engine project, but any guidance would be appreciated.

— Reply to this email directly or view it on GitHub https://github.com/Insightly/ruby/issues/13#issuecomment-59962075.

— Reply to this email directly or view it on GitHub.

dior001 commented 9 years ago

Hi guys sorry for the late response. I've added some code samples to the readme. If after the viewing the sample code you're still having problems let me know the specific nature of the issue and I can answer your questions.

brianinsightly commented 9 years ago

great, thanks much! I'll merge in the pull request shortly.

On Thu, Oct 23, 2014 at 11:55 AM, David Iorns notifications@github.com wrote:

Hi guys sorry for the late response. I've added some code samples to the readme. If after the viewing the sample code you're still having problems let me know the specific nature of the issue and I can answer your questions.

— Reply to this email directly or view it on GitHub https://github.com/Insightly/ruby/issues/13#issuecomment-60290475.

dior001 commented 9 years ago

@brianinsightly hope conference was good. I recommend this issue be closed. Code samples have been added to the readme. Thanks.