Google Sheets API by api key (googlesheetsapikey.cs)
Dependency
Constructor
public googlesheetsapikey(string getSheetId, string getRange, string getApiKey, int getRetDataFormat)
API
public HttpResponseMessage fetchData()
Example
- Used in ASPX.NET / C# and pass data by the json format
public HttpResponseMessage exampleResponse() {
string sheetid = "example-id";
string range = "A:L";
string apikey = "exmaple-key";
int retFormat = 0;
var gsbyapikey = new googlesheetsapikey(sheetid, range, apikey, retFormat);
return gsbyapikey.fetchData();
}