Quantcast
Channel: Zoho Reports API
Viewing all articles
Browse latest Browse all 71

Go-Client-Library :: Version1.1

$
0
0

Go Library

The Go client libraries wraps the raw HTTP based API of Zoho Reports with easy to use methods for the Go platform. This enables Go Language developers to easily use Zoho Reports API.


Prerequisites:

It is recommend to go through the Zoho Reports API Documentation and the Prerequisites before using  the Go client library code in your application.

Download Go Client Library:

Download the Go client library from the following link.



API Reference Documentation:

All the available APIs in the Go Client Library can be referred in the Go API Reference Documentation.


How to use:

The below instructions helps to use Zoho Reports Go Client Library in your Go application.


  • Download the Go Client Library from the above download link
  • Extract the ZIP file
  • Copy zoho/pkg/reportclient/reportclient.go to <GO_PATH>/src/ folder
  • Go to zoho/pkg/reportclient folder
  • Execute the below command:
    go install
  • You can use Zoho Reports Client Library as below.




package main

import  
   "fmt" "zoho/pkg/reportclient" 
)

func addrow()  
 url := reportclient.GetUri(email, dbname, tbname)
 columnvalues := map[string]string{} 
    columnvalues["Id"] = "idv" 
    columnvalues["Name"] = "zzz" 
    columnvalues["Salary"] = "999" 
    columnvalues["Experience"] = "999"
    resultmap , err := reportclient.AddRow(url, columnvalues) 
    if(err != nil) {  
      fmt.Println(err.ErrorMessage)
      fmt.Println(err.ErrorCode)
      fmt.Println(err.Action)
      fmt.Println(err.HttpStatusCode) 
  } else {
      fmt.Println(resultmap) 
  }
}
 
func main() { 
reportclient.SetAuthToken(authtoken) 
addrow()
}







Viewing all articles
Browse latest Browse all 71

Latest Images

Trending Articles



Latest Images