List secrets
List all secrets stored on the given scope.
API Endpoint: GET /v1/apps/secrets
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.apps.secret.list(scope={"type_": "account"})from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.apps.secret.list(scope={"type_": "account"})Find a Secret
Finds a secret in the secret store by name and scope.
API Endpoint: GET /v1/apps/secrets/find
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.apps.secret.find(name="string", scope={"type_": "account"})from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.apps.secret.find(name="string", scope={"type_": "account"})Set a Secret
Create or replace a secret in the secret store.
API Endpoint: POST /v1/apps/secrets
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.apps.secret.create(
name="string", payload="string", scope={"type_": "account"}
)from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.apps.secret.create(
name="string", payload="string", scope={"type_": "account"}
)Delete a Secret
Deletes a secret from the secret store by name and scope.
API Endpoint: POST /v1/apps/secrets/delete
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.apps.secret.delete(name="string", scope={"type_": "account"})from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.apps.secret.delete(name="string", scope={"type_": "account"})