Skip to content

Commit f9ce354

Browse files
authored
Merge branch 'main' into generate-script
2 parents 972ed09 + 5994fe0 commit f9ce354

File tree

17 files changed

+49
-32
lines changed

17 files changed

+49
-32
lines changed

examples/php/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackCallSummaryContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function update(\DateTime $endDate, \DateTime $startDate, array $options
8282
$options['accountSid'],
8383
]);
8484

85-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
85+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
8686
$payload = $this->version->update('POST', $this->uri, [], $data, $headers);
8787

8888
return new FeedbackCallSummaryInstance(

examples/php/src/Twilio/Rest/Api/V2010/Account/CallContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function delete(): bool
8686
public function fetch(): CallInstance
8787
{
8888

89-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
89+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
9090
$payload = $this->version->fetch('GET', $this->uri, [], [], $headers);
9191

9292
return new CallInstance(

examples/php/src/Twilio/Rest/Api/V2010/Account/CallList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function create(string $requiredStringProperty, string $testMethod, array
8585
Serialize::map($options['testArrayOfUri'], function ($e) { return $e; }),
8686
]);
8787

88-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
88+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
8989
$payload = $this->version->create('POST', $this->uri, [], $data, $headers);
9090

9191
return new CallInstance(

examples/php/src/Twilio/Rest/Api/V2010/AccountContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function delete(): bool
8484
public function fetch(): AccountInstance
8585
{
8686

87-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
87+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
8888
$payload = $this->version->fetch('GET', $this->uri, [], [], $headers);
8989

9090
return new AccountInstance(
@@ -115,7 +115,7 @@ public function update(string $status, array $options = []): AccountInstance
115115
$options['pauseBehavior'],
116116
]);
117117

118-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
118+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
119119
$payload = $this->version->update('POST', $this->uri, [], $data, $headers);
120120

121121
return new AccountInstance(

examples/php/src/Twilio/Rest/Api/V2010/AccountList.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function create(array $options = []): AccountInstance
7070
$options['twiml'],
7171
]);
7272

73-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' , 'X-Twilio-Webhook-Enabled' => $options['xTwilioWebhookEnabled']]);
73+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' , 'X-Twilio-Webhook-Enabled' => $options['xTwilioWebhookEnabled']]);
7474
$payload = $this->version->create('POST', $this->uri, [], $data, $headers);
7575

7676
return new AccountInstance(
@@ -161,7 +161,8 @@ public function page(
161161
'PageSize' => $pageSize,
162162
]);
163163

164-
$response = $this->version->page('GET', $this->uri, $params);
164+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json']);
165+
$response = $this->version->page('GET', $this->uri, $params, [], $headers);
165166

166167
return new AccountPage($this->version, $response, $this->solution);
167168
}

examples/php/src/Twilio/Rest/FlexApi/V1/CallContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(
6363
public function update(): CallInstance
6464
{
6565

66-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
66+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
6767
$payload = $this->version->update('POST', $this->uri, [], [], $headers);
6868

6969
return new CallInstance(

examples/php/src/Twilio/Rest/FlexApi/V1/Credential/Aws/HistoryContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function fetch(array $options = []): HistoryInstance
7070
]);
7171
$params = \array_merge($params, Serialize::prefixedCollapsibleMap($options['addOnsData'], 'AddOns'));
7272

73-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
73+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
7474
$payload = $this->version->fetch('GET', $this->uri, $params, [], $headers);
7575

7676
return new HistoryInstance(

examples/php/src/Twilio/Rest/FlexApi/V1/Credential/AwsContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function delete(): bool
8484
public function fetch(): AwsInstance
8585
{
8686

87-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
87+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
8888
$payload = $this->version->fetch('GET', $this->uri, [], [], $headers);
8989

9090
return new AwsInstance(
@@ -114,7 +114,7 @@ public function update(array $options = []): AwsInstance
114114
Serialize::booleanToString($options['testBoolean']),
115115
]);
116116

117-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
117+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
118118
$payload = $this->version->update('POST', $this->uri, [], $data, $headers);
119119

120120
return new AwsInstance(

examples/php/src/Twilio/Rest/FlexApi/V1/Credential/AwsList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public function page(
118118
'PageSize' => $pageSize,
119119
]);
120120

121-
$response = $this->version->page('GET', $this->uri, $params);
121+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json']);
122+
$response = $this->version->page('GET', $this->uri, $params, [], $headers);
122123

123124
return new AwsPage($this->version, $response, $this->solution);
124125
}

examples/php/src/Twilio/Rest/FlexApi/V1/Credential/NewCredentialsList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function create(string $testString, array $options = []): NewCredentialsI
9898
$options['someA2PThing'],
9999
]);
100100

101-
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded' ]);
101+
$headers = Values::of(['Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' ]);
102102
$payload = $this->version->create('POST', $this->uri, [], $data, $headers);
103103

104104
return new NewCredentialsInstance(

0 commit comments

Comments
 (0)