(embed_tokens)
- create - Create a new embed token
Create a new embed token for the referral link.
require 'dub'
s = ::OpenApiSDK::Dub.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
token: "DUB_API_KEY",
)
)
req = ::OpenApiSDK::Operations::CreateEmbedTokenRequestBody.new(
link_id: "<id>",
)
res = s.embed_tokens.create(req)
if ! res.object.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::OpenApiSDK::Operations::CreateEmbedTokenRequestBody | ✔️ | The request object to use for the request. |
T.nilable(::OpenApiSDK::Operations::CreateEmbedTokenResponse)