Skip to content

Commit

Permalink
Moving example to examples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Jun 24, 2024
1 parent 299fa0d commit 80ac445
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,24 +146,7 @@ public class Example {
}
```

To bypass the initialization step you can also use a custom token manager implementation. Token manager class should implement the Token interface and call a token generation endpoint of your choice. Here is a sample code.

```java
import com.twilio.TwilioOrgsTokenAuth;
import com.twilio.exception.AuthenticationException;

public class Example {

private static final String GRANT_TYPE = "grant_type_to_be_used";
private static final String CLIENT_SID =
"client_id_of_the_organization";
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));
}
}
```
To bypass the initialization step you can also use a custom token manager implementation. Token manager class should implement the Token interface and call a token generation endpoint of your choice.
Detailed example [here](https://github.com/twilio/twilio-java/tree/main/examples)

### Environment Variables
Expand Down

0 comments on commit 80ac445

Please sign in to comment.