-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Docs update to use custom clients when endpoints have no auth/bearer token auth and Support for PUT method #802
Conversation
@@ -140,7 +140,7 @@ public <T extends IRequest> Response makeRequest(final T request) { | |||
} | |||
} | |||
|
|||
if (method == HttpMethod.POST) { | |||
if (method == HttpMethod.POST || method == HttpMethod.PUT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GET does not have body all other methods can have body.
Check with Shubham before adding Delete support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked with Shubham
Adding support for all methods except GET
README.md
Outdated
private static final String CLIENT_SECRET = "client_secret_of_organization"; | ||
|
||
public static void main(String[] args) throws AuthenticationException { | ||
TwilioOrgsTokenAuth.setTokenManager(new CustomTokenManagerImpl(GRANT_TYPE, CLIENT_SID, CLIENT_SECRET)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this in example and give link. Lets keep readme more readable and concise.
Also give example without custom token manager.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was added in main, check there as well.
We did not add delete because it was giving some error(I think), but now we can add delete as well.
Fixes
A short description of what this PR does.
Docs update to use custom clients when endpoints have no auth/bearer token auth and Support for PUT method
Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.