Skip to content

Commit

Permalink
examples folder changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Dec 3, 2024
1 parent a692aa1 commit 7d4400c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/python/twilio/rest/api/v2010/account/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ def create(
}
)

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = self._version.create(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand Down Expand Up @@ -472,6 +476,10 @@ async def create_async(
}
)

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = await self._version.create_async(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ def create(
)
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = self._version.create(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand Down Expand Up @@ -344,6 +348,10 @@ async def create_async(
)
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = await self._version.create_async(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def create(
)
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = self._version.create(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand Down Expand Up @@ -218,6 +222,10 @@ async def create_async(
)
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = await self._version.create_async(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ def create(self, name: Union[str, object] = values.unset) -> FleetInstance:
)
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = self._version.create(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand All @@ -202,6 +206,10 @@ async def create_async(
)
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

headers["Content-Type"] = "application/x-www-form-urlencoded"

headers["Accept"] = "application/json"

payload = await self._version.create_async(
method="POST", uri=self._uri, data=data, headers=headers
)
Expand Down

0 comments on commit 7d4400c

Please sign in to comment.