You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
marcus/gcontacts3 Google Contacts Ballerina library gives only few contacts when all contatcs requested. Also erandig/gcontacts3 library doesn't work with my ballerina version. My version is 0.981.0.
Steps to reproduce:
This is my code
importballerina/config;
importballerina/log;
importballerina/io;
importmarcus/gcontacts3;
documentation{Avalidaccesstokenwithgooglecontactaccess.}
string accessToken =config:getAsString("ACCESS_TOKEN");
documentation{TheclientIDforyourapplication.}
string clientId =config:getAsString("CLIENT_ID");
documentation{Theclientsecretforyourapplication.}
string clientSecret =config:getAsString("CLIENT_SECRET");
documentation{AvalidrefreshTokenwithgmailandgooglesheetsaccess.}
string refreshToken =config:getAsString("REFRESH_TOKEN");
documentation{Senderemailaddress.}
string email =config:getAsString("USER");
endpointgcontacts3:ClientcontactsClient {
clientConfig: {
auth: {
accessToken:accessToken,
refreshToken:refreshToken,
clientId:clientId,
clientSecret:clientSecret
}
}
};
function getCustomerDetailsFromGSheet() returns (xml) {
//Read all the values from the sheet.xml values =checkcontactsClient->getAllContacts(email);
log:printInfo("Retrieved contacts xml from mail"+sheetName);
returnvalues;
}
function main(string...args) {
log:printDebug("getting contacts");
xml result =getCustomerDetailsFromGSheet();
xml x =result.entry.title;
io:println(x.getTextValue());
//io:println(result);
}
Affected Versions:
0.981.0 OS, DB, other environment details and versions:
Windows 10
The text was updated successfully, but these errors were encountered:
Reported by @HishanIndrajith
Original issue: ballerina-platform/ballerina-lang#10153
Description:
marcus/gcontacts3 Google Contacts Ballerina library gives only few contacts when all contatcs requested. Also erandig/gcontacts3 library doesn't work with my ballerina version. My version is 0.981.0.
Steps to reproduce:
This is my code
Affected Versions:
0.981.0
OS, DB, other environment details and versions:
Windows 10
The text was updated successfully, but these errors were encountered: