Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.99 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.99 KB

EmbedTokens

(embed_tokens)

Overview

Available Operations

  • create - Create a new embed token

create

Create a new embed token for the referral link.

Example Usage

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

Parameters

Parameter Type Required Description
request ::OpenApiSDK::Operations::CreateEmbedTokenRequestBody ✔️ The request object to use for the request.

Response

T.nilable(::OpenApiSDK::Operations::CreateEmbedTokenResponse)