teference / zoho-dotnet

Zoho API .NET SDK
MIT License
7 stars 11 forks source link

Getting Started? #11

Closed schenckg closed 5 years ago

schenckg commented 5 years ago

Hello,

First, does this code support the new Zoho V2 API?

Assuming so I'm having trouble getting started. Do you have a basic example that shows the steps needed to authenticate with the OAuth methods and then make at least one request with the tokens? I can't seem to figure out how I'm supposed to use the code...

Thanks!

jsinh commented 5 years ago

Hello @schenckg

Thanks for reaching out. Unfortunately, follow library is build to work against V1 of API. Here is the details of it: https://github.com/teference/zoho-dotnet/blob/master/source/Zoho.Api/ZohoConfig.cs#L8

In case you wish to still use it, you can generate a token in your zoho account and use the organization id and token to make calls using this API.

A simple initialization is shown here. https://github.com/teference/zoho-dotnet/blob/master/test/Zoho.ApiTest/Program.cs#L18-L23 Once initialized you can use the zohoClient object to make API calls.

Hope this helps!