Getting following error when trying the twitter connector.
error: wso2.twitter:TwitterError, message: bad Authentication data.
at tweet.doTweet(MyTwitterService.bal:31)
Following is my code
doTweet(endpoint caller, http:Request request){
string message = check request.getTextPayload();
twitter:Status st = check twitter->tweet(message,"","");
http:Response response = new;
response.setTextPayload("ID "+ <string>st.id + " \n");
_=caller->respond(response);
}
What could be the issue?
Double checked about the credentials and they are correct.
Just following https://ballerina.io/learn/quick-tour/