Skip to content

What is the use of duration param? #2

@vinaykashyap1206

Description

@vinaykashyap1206

I want to set an expiry time to my branch IO link. Can I use the duration param? I tried setting it to 60 seconds but it did not expire my link. Here is my code:

def get_branch_io_link(invite_token, invite_role):
client = branchio.Client(settings.BRANCH_IO_KEY)
response = client.create_deep_link_url(
duration=60,
data={
"user": {
"invite_token": invite_token,
"invite_role": invite_role,
}
},
)
url = response[branchio.RETURN_URL]
return url

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions