Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/csharp/src/Twilio/Rest/Oauth/V2/TokenOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@ public List<KeyValuePair<string, string>> GetParams()


}

}

1 change: 1 addition & 0 deletions examples/csharp/src/Twilio/Rest/Oauth/V2/TokenResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public static async System.Threading.Tasks.Task<TokenResource> CreateAsync(
return await CreateAsync(options, client);
}
#endif


/// <summary>
/// Converts a JSON string into a TokenResource object
Expand Down
2 changes: 1 addition & 1 deletion examples/go/go-client/helper/rest/api/v2010/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Class | Method | HTTP request | Description
- [TestResponseObjectTestObject](docs/TestResponseObjectTestObject.md)
- [TestFetchResponseObject](docs/TestFetchResponseObject.md)
- [TestResponseObject](docs/TestResponseObject.md)
- [TestResponseObjectTestArrayOfObjects](docs/TestResponseObjectTestArrayOfObjects.md)
- [TestResponseObjectTestArrayOfObjectsInner](docs/TestResponseObjectTestArrayOfObjectsInner.md)


## Documentation For Authorization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ type TestFetchResponseObject struct {
TestNumberDecimal *float64 `json:"test_number_decimal,omitempty"`
TestEnum *string `json:"test_enum,omitempty"`
// A2P Messaging Profile Bundle BundleSid
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects,omitempty"`
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects,omitempty"`
// Permissions authorized to the app
TestArrayOfEnum *[]string `json:"test_array_of_enum,omitempty"`
// The status of the user
Expand All @@ -49,25 +49,25 @@ type TestFetchResponseObject struct {

func (response *TestFetchResponseObject) UnmarshalJSON(bytes []byte) (err error) {
raw := struct {
AccountSid *string `json:"account_sid"`
Sid *string `json:"sid"`
TestString *string `json:"test_string"`
TestInteger *int `json:"test_integer"`
TestObject *TestResponseObjectTestObject `json:"test_object"`
TestDateTime *string `json:"test_date_time"`
TestNumber *interface{} `json:"test_number"`
From *string `json:"from"`
PriceUnit *string `json:"price_unit"`
TestNumberFloat *interface{} `json:"test_number_float"`
TestNumberDecimal *float64 `json:"test_number_decimal"`
TestEnum *string `json:"test_enum"`
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
TestArrayOfIntegers []int `json:"test_array_of_integers"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects"`
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
Status string `json:"status"`
Message string `json:"message"`
AccountSid *string `json:"account_sid"`
Sid *string `json:"sid"`
TestString *string `json:"test_string"`
TestInteger *int `json:"test_integer"`
TestObject *TestResponseObjectTestObject `json:"test_object"`
TestDateTime *string `json:"test_date_time"`
TestNumber *interface{} `json:"test_number"`
From *string `json:"from"`
PriceUnit *string `json:"price_unit"`
TestNumberFloat *interface{} `json:"test_number_float"`
TestNumberDecimal *float64 `json:"test_number_decimal"`
TestEnum *string `json:"test_enum"`
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
TestArrayOfIntegers []int `json:"test_array_of_integers"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects"`
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
Status string `json:"status"`
Message string `json:"message"`
}{}

if err = json.Unmarshal(bytes, &raw); err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,33 @@ type TestResponseObject struct {
TestNumberDecimal *float64 `json:"test_number_decimal,omitempty"`
TestEnum *string `json:"test_enum,omitempty"`
// A2P Messaging Profile Bundle BundleSid
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects,omitempty"`
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
TestArrayOfIntegers []int `json:"test_array_of_integers,omitempty"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers,omitempty"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects,omitempty"`
// Permissions authorized to the app
TestArrayOfEnum *[]string `json:"test_array_of_enum,omitempty"`
}

func (response *TestResponseObject) UnmarshalJSON(bytes []byte) (err error) {
raw := struct {
AccountSid *string `json:"account_sid"`
Sid *string `json:"sid"`
TestString *string `json:"test_string"`
TestInteger *int `json:"test_integer"`
TestObject *TestResponseObjectTestObject `json:"test_object"`
TestDateTime *string `json:"test_date_time"`
TestNumber *interface{} `json:"test_number"`
From *string `json:"from"`
PriceUnit *string `json:"price_unit"`
TestNumberFloat *interface{} `json:"test_number_float"`
TestNumberDecimal *float64 `json:"test_number_decimal"`
TestEnum *string `json:"test_enum"`
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
TestArrayOfIntegers []int `json:"test_array_of_integers"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjects `json:"test_array_of_objects"`
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
AccountSid *string `json:"account_sid"`
Sid *string `json:"sid"`
TestString *string `json:"test_string"`
TestInteger *int `json:"test_integer"`
TestObject *TestResponseObjectTestObject `json:"test_object"`
TestDateTime *string `json:"test_date_time"`
TestNumber *interface{} `json:"test_number"`
From *string `json:"from"`
PriceUnit *string `json:"price_unit"`
TestNumberFloat *interface{} `json:"test_number_float"`
TestNumberDecimal *float64 `json:"test_number_decimal"`
TestEnum *string `json:"test_enum"`
A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid"`
TestArrayOfIntegers []int `json:"test_array_of_integers"`
TestArrayOfArrayOfIntegers [][]int `json:"test_array_of_array_of_integers"`
TestArrayOfObjects *[]TestResponseObjectTestArrayOfObjectsInner `json:"test_array_of_objects"`
TestArrayOfEnum *[]string `json:"test_array_of_enum"`
}{}

if err = json.Unmarshal(bytes, &raw); err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import (
"github.com/twilio/twilio-go/client"
)

// TestResponseObjectTestArrayOfObjects struct for TestResponseObjectTestArrayOfObjects
type TestResponseObjectTestArrayOfObjects struct {
// TestResponseObjectTestArrayOfObjectsInner struct for TestResponseObjectTestArrayOfObjectsInner
type TestResponseObjectTestArrayOfObjectsInner struct {
Count float32 `json:"count,omitempty"`
Description string `json:"description,omitempty"`
}

func (response *TestResponseObjectTestArrayOfObjects) UnmarshalJSON(bytes []byte) (err error) {
func (response *TestResponseObjectTestArrayOfObjectsInner) UnmarshalJSON(bytes []byte) (err error) {
raw := struct {
Count interface{} `json:"count"`
Description string `json:"description"`
Expand All @@ -36,7 +36,7 @@ func (response *TestResponseObjectTestArrayOfObjects) UnmarshalJSON(bytes []byte
return err
}

*response = TestResponseObjectTestArrayOfObjects{
*response = TestResponseObjectTestArrayOfObjectsInner{
Description: raw.Description,
}

Expand Down
Loading
Loading