lib/plaid/api/plaid_api.rb
def item_create_public_token_with_http_info(item_public_token_create_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PlaidApi.item_create_public_token ...'
      end
      # verify the required parameter 'item_public_token_create_request' is set
      if @api_client.config.client_side_validation && item_public_token_create_request.nil?
        fail ArgumentError, "Missing the required parameter 'item_public_token_create_request' when calling PlaidApi.item_create_public_token"
      end
      # resource path
      local_var_path = '/item/public_token/create'

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body] || @api_client.object_to_http_body(item_public_token_create_request)

      # return_type
      return_type = opts[:debug_return_type] || 'ItemPublicTokenCreateResponse'

      # auth_names
      auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret']

      new_options = opts.merge(
        :operation => :"PlaidApi.item_create_public_token",
        :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#item_create_public_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Create public token
# Note: As of July 2020, the &#x60;/item/public_token/create&#x60; endpoint is deprecated. Instead, use &#x60;/link/token/create&#x60; with an &#x60;access_token&#x60; to create a Link token for use with [update mode](https://plaid.com/docs/link/update-mode).  If you need your user to take action to restore or resolve an error associated with an Item, generate a public token with the &#x60;/item/public_token/create&#x60; endpoint and then initialize Link with that &#x60;public_token&#x60;.  A &#x60;public_token&#x60; is one-time use and expires after 30 minutes. You use a &#x60;public_token&#x60; to initialize Link in [update mode](https://plaid.com/docs/link/update-mode) for a particular Item. You can generate a &#x60;public_token&#x60; for an Item even if you did not use Link to create the Item originally.  The &#x60;/item/public_token/create&#x60; endpoint is **not** used to create your initial &#x60;public_token&#x60;. If you have not already received an &#x60;access_token&#x60; for a specific Item, use Link to obtain your &#x60;public_token&#x60; instead. See the [Quickstart](https://plaid.com/docs/quickstart) for more information.
# @param item_public_token_create_request [ItemPublicTokenCreateRequest] 
# @param [Hash] opts the optional parameters
# @return [Array<(ItemPublicTokenCreateResponse, Integer, Hash)>] ItemPublicTokenCreateResponse data, response status code and response headers
Create public token
Note: As of July 2020, the `/item/public_token/create` endpoint is deprecated. Instead, use `/link/token/create` with an `access_token` to create a Link token for use with [update mode].  If you need your user to take action to restore or resolve an error associated with an Item, generate a public token with the `/item/public_token/create` endpoint and then initialize Link with that `public_token`.  A `public_token` is one-time use and expires after 30 minutes. You use a `public_token` to initialize Link in [update mode] for a particular Item. You can generate a `public_token` for an Item even if you did not use Link to create the Item originally.  The `/item/public_token/create` endpoint is **not** used to create your initial `public_token`. If you have not already received an `access_token` for a specific Item, use Link to obtain your `public_token` instead. See the [Quickstart] for more information.
Create public token Note : As of July 2020 the ` / item / public_token / create ` endpoint is deprecated . Instead use ` / link / token / create ` with an ` access_token ` to create a Link token for use with [ update mode ] . If you need your user to take action to restore or resolve an error associated with an Item generate a public token with the ` / item / public_token / create ` endpoint and then initialize Link with that ` public_token ` . A ` public_token ` is one - time use and expires after 30 minutes . You use a ` public_token ` to initialize Link in [ update mode ] for a particular Item . You can generate a ` public_token ` for an Item even if you did not use Link to create the Item originally . The ` / item / public_token / create ` endpoint is ** not ** used to create your initial ` public_token ` . If you have not already received an ` access_token ` for a specific Item use Link to obtain your ` public_token ` instead . See the [ Quickstart ] for more information .
def item_create_public_token_with_http_info(item_public_token_create_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PlaidApi.item_create_public_token ...'
      end
      if @api_client.config.client_side_validation && item_public_token_create_request.nil?
        fail ArgumentError, "Missing the required parameter 'item_public_token_create_request' when calling PlaidApi.item_create_public_token"
      end
      local_var_path = '/item/public_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(item_public_token_create_request)
      return_type = opts[:debug_return_type] || 'ItemPublicTokenCreateResponse'
      auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret']
      new_options = opts.merge(
        :operation => :"PlaidApi.item_create_public_token",
        :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#item_create_public_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def item_create_public_token_with_http_info ( item_public_token_create_request , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PlaidApi.item_create_public_token ...' end if @api_client . config . client_side_validation && item_public_token_create_request . nil? fail ArgumentError , "Missing the required parameter 'item_public_token_create_request' when calling PlaidApi.item_create_public_token" end local_var_path = '/item/public_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 ( item_public_token_create_request ) return_type = opts [ :debug_return_type ] || 'ItemPublicTokenCreateResponse' auth_names = opts [ :debug_auth_names ] || [ 'clientId' , 'plaidVersion' , 'secret' ] new_options = opts . merge ( :operation => :" PlaidApi.item_create_public_token " , :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#item_create_public_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create public token
Note: As of July 2020, the &#x60;/item/public_token/create&#x60; endpoint is deprecated.
Create public token Note : As of July 2020 the &#x60 ; / item / public_token / create&#x60 ; endpoint is deprecated .
# verify the required parameter 'item_public_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
ItemPublicTokenCreateResponse data, response status code and response headers
ItemPublicTokenCreateResponse data response status code and response headers
Array<(ItemPublicTokenCreateResponse, Integer, Hash)>
item_public_token_create_request
opts
None
opts the optional parameters
opts the optional parameters