-
Notifications
You must be signed in to change notification settings - Fork 40
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
docs: add standalone usage example #81
Conversation
@@ -337,6 +335,35 @@ func main() { | |||
For more descriptive exception types, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/go/usage-guide#exceptions). | |||
|
|||
## Advanced Usage | |||
### Using Standalone Products | |||
Don't want to import the top-level Twilio RestClient with access to the full suite of Twilio products? Use standalone product services instead: |
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.
Awesome!!
@@ -337,6 +335,35 @@ func main() { | |||
For more descriptive exception types, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/go/usage-guide#exceptions). | |||
|
|||
## Advanced Usage | |||
### Using Standalone Products | |||
Don't want to import the top-level Twilio RestClient with access to the full suite of Twilio products? Use standalone product services instead: | |||
```go |
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.
When I try to run this example, I'm getting:
./main.go:19:15: defaultClient.SetAccountSid undefined (type *client.Client has no field or method SetAccountSid)
./main.go:21:20: undefined: "github.com/twilio/twilio-go/rest/api/v2010".NewDefaultApiServiceWithClient
./main.go:22:26: undefined: "github.com/twilio/twilio-go/rest/serverless/v1".NewDefaultApiServiceWithClient
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.
Are you using the main branch or pulling a released version? These changes haven't been released yet.
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.
Ah, I think I'm pulling the released version v0.8.0. Will test against main. Thanks!
Add documentation for how to use standalone product API services.
Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.