SatelCreative / spylib

A library to facilitate interfacing with Shopify's API
https://satelcreative.github.io/spylib
MIT License
3 stars 2 forks source link

:alien: 💥 replace app_handle with app_api_key for redirect #192

Closed lishanl closed 1 year ago

lishanl commented 1 year ago

close #181

Do we want to also support redirect to non emebeded app like doing below?

def app_redirect(
    store_domain: str, app_domain: str, app_api_key: str, embedded: bool = True
) -> str:
    if not embedded:
        return f'https://{app_domain}'
    return f'https://{store_domain}/admin/apps/{app_api_key}'
lishanl commented 1 year ago

any comment / suggestion Ant @hillairet ?