Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 2.05 KB

File metadata and controls

108 lines (72 loc) · 2.05 KB

list

List all file links

Returns a list of file links.

API Endpoint: GET /v1/file_links

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.file_link.list()

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.file_link.list()

get

Retrieve a file link

Retrieves the file link with the given ID.

API Endpoint: GET /v1/file_links/{link}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.file_link.get(link="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.file_link.get(link="string")

create

Create a file link

Creates a new file link object.

API Endpoint: POST /v1/file_links

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.file_link.create(file="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.file_link.create(file="string")

update

Update a file link

Updates an existing file link object. Expired links can no longer be updated.

API Endpoint: POST /v1/file_links/{link}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.file_link.update(link="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.file_link.update(link="string")