lib/plaid/api/plaid_api.rb
# Create Link Token
# The &#x60;/link/token/create&#x60; endpoint creates a &#x60;link_token&#x60;, which is required as a parameter when initializing Link. Once Link has been initialized, it returns a &#x60;public_token&#x60;, which can then be exchanged for an &#x60;access_token&#x60; via &#x60;/item/public_token/exchange&#x60; as part of the main Link flow.  A &#x60;link_token&#x60; generated by &#x60;/link/token/create&#x60; is also used to initialize other Link flows, such as the update mode flow for tokens with expired credentials, or the Payment Initiation (Europe) flow.
# @param link_token_create_request [LinkTokenCreateRequest] 
# @param [Hash] opts the optional parameters
# @return [Array<(LinkTokenCreateResponse, Integer, Hash)>] LinkTokenCreateResponse data, response status code and response headers
Create Link Token
The `/link/token/create` endpoint creates a `link_token`, which is required as a parameter when initializing Link.
Create Link Token The ` / link / token / create ` endpoint creates a ` link_token ` which is required as a parameter when initializing Link .
def link_token_create_with_http_info(link_token_create_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PlaidApi.link_token_create ...'
      end
      if @api_client.config.client_side_validation && link_token_create_request.nil?
        fail ArgumentError, "Missing the required parameter 'link_token_create_request' when calling PlaidApi.link_token_create"
      end
      local_var_path = '/link/token/create'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(link_token_create_request)
      return_type = opts[:debug_return_type] || 'LinkTokenCreateResponse'
      auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret']
      new_options = opts.merge(
        :operation => :"PlaidApi.link_token_create",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: PlaidApi#link_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def link_token_create_with_http_info ( link_token_create_request , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PlaidApi.link_token_create ...' end if @api_client . config . client_side_validation && link_token_create_request . nil? fail ArgumentError , "Missing the required parameter 'link_token_create_request' when calling PlaidApi.link_token_create" end local_var_path = '/link/token/create' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( link_token_create_request ) return_type = opts [ :debug_return_type ] || 'LinkTokenCreateResponse' auth_names = opts [ :debug_auth_names ] || [ 'clientId' , 'plaidVersion' , 'secret' ] new_options = opts . merge ( :operation => :" PlaidApi.link_token_create " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: PlaidApi#link_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create Link Token
The &#x60;/link/token/create&#x60; endpoint creates a &#x60;link_token&#x60;, which is required as a parameter when initializing Link.
Create Link Token The &#x60 ; / link / token / create&#x60 ; endpoint creates a &#x60 ; link_token&#x60 ; which is required as a parameter when initializing Link .
# verify the required parameter 'link_token_create_request' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
LinkTokenCreateResponse data, response status code and response headers
LinkTokenCreateResponse data response status code and response headers
Array<(LinkTokenCreateResponse, Integer, Hash)>
link_token_create_request
opts
None
opts the optional parameters
opts the optional parameters