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
I am trying to make a request to Tweeter with OAuth1 authentication method in Python I manage to do it with requests library but on Java I use Rest assured. Following code does not work, its return Unauthorized. I check online the solution appear to add scribejava dependency so auth().oauth() to work without extra work :
Envirument: Java 8
public static Headers headerEmpty() {
Header contentType = new Header("Content-Type", "application/json");
Header acceptType = new Header("Accept", "*/*");
List<Header> headerList = new ArrayList<>();
headerList.add(contentType);
headerList.add(acceptType);
return new Headers(headerList);
}
I am trying to make a request to Tweeter with OAuth1 authentication method in Python I manage to do it with requests library but on Java I use Rest assured. Following code does not work, its return Unauthorized. I check online the solution appear to add scribejava dependency so
auth().oauth()
to work without extra work :Envirument: Java 8
The text was updated successfully, but these errors were encountered: