-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Custom requests section to README (#1405)
- Loading branch information
1 parent
de20eeb
commit 206b394
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from stripe import StripeClient | ||
|
||
# Set your API key here | ||
api_key = "{{API_KEY}}" | ||
|
||
client = StripeClient(api_key) | ||
response = client.raw_request( | ||
"post", | ||
"/v1/beta_endpoint", | ||
param=123, | ||
stripe_version="2022-11-15; feature_beta=v3", | ||
) | ||
|
||
# (Optional) response is a StripeResponse. You can use `client.deserialize` to get a StripeObject. | ||
deserialized_resp = client.deserialize(response, api_mode="V1") |