lib/plaid/api/plaid_api.rb
def sandbox_processor_token_create_with_http_info(sandbox_processor_token_create_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PlaidApi.sandbox_processor_token_create ...'
      end
      # verify the required parameter 'sandbox_processor_token_create_request' is set
      if @api_client.config.client_side_validation && sandbox_processor_token_create_request.nil?
        fail ArgumentError, "Missing the required parameter 'sandbox_processor_token_create_request' when calling PlaidApi.sandbox_processor_token_create"
      end
      # resource path
      local_var_path = '/sandbox/processor_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(sandbox_processor_token_create_request)

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

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

      new_options = opts.merge(
        :operation => :"PlaidApi.sandbox_processor_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#sandbox_processor_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Create a test Item and processor token
# Use the &#x60;/sandbox/processor_token/create&#x60; endpoint to create a valid &#x60;processor_token&#x60; for an arbitrary institution ID and test credentials. The created &#x60;processor_token&#x60; corresponds to a new Sandbox Item. You can then use this &#x60;processor_token&#x60; with the &#x60;/processor/&#x60; API endpoints in Sandbox. You can also use &#x60;/sandbox/processor_token/create&#x60; with the [&#x60;user_custom&#x60; test username](https://plaid.com/docs/sandbox/user-custom) to generate a test account with custom data.
# @param sandbox_processor_token_create_request [SandboxProcessorTokenCreateRequest] 
# @param [Hash] opts the optional parameters
# @return [Array<(SandboxProcessorTokenCreateResponse, Integer, Hash)>] SandboxProcessorTokenCreateResponse data, response status code and response headers
Create a test Item and processor token
Use the `/sandbox/processor_token/create` endpoint to create a valid `processor_token` for an arbitrary institution ID and test credentials. The created `processor_token` corresponds to a new Sandbox Item. You can then use this `processor_token` with the `/processor/` API endpoints in Sandbox. You can also use `/sandbox/processor_token/create` with the [`user_custom` test username] to generate a test account with custom data.
Create a test Item and processor token Use the ` / sandbox / processor_token / create ` endpoint to create a valid ` processor_token ` for an arbitrary institution ID and test credentials . The created ` processor_token ` corresponds to a new Sandbox Item . You can then use this ` processor_token ` with the ` / processor / ` API endpoints in Sandbox . You can also use ` / sandbox / processor_token / create ` with the [ ` user_custom ` test username ] to generate a test account with custom data .
def sandbox_processor_token_create_with_http_info(sandbox_processor_token_create_request, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: PlaidApi.sandbox_processor_token_create ...'
      end
      if @api_client.config.client_side_validation && sandbox_processor_token_create_request.nil?
        fail ArgumentError, "Missing the required parameter 'sandbox_processor_token_create_request' when calling PlaidApi.sandbox_processor_token_create"
      end
      local_var_path = '/sandbox/processor_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(sandbox_processor_token_create_request)
      return_type = opts[:debug_return_type] || 'SandboxProcessorTokenCreateResponse'
      auth_names = opts[:debug_auth_names] || ['clientId', 'plaidVersion', 'secret']
      new_options = opts.merge(
        :operation => :"PlaidApi.sandbox_processor_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#sandbox_processor_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def sandbox_processor_token_create_with_http_info ( sandbox_processor_token_create_request , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: PlaidApi.sandbox_processor_token_create ...' end if @api_client . config . client_side_validation && sandbox_processor_token_create_request . nil? fail ArgumentError , "Missing the required parameter 'sandbox_processor_token_create_request' when calling PlaidApi.sandbox_processor_token_create" end local_var_path = '/sandbox/processor_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 ( sandbox_processor_token_create_request ) return_type = opts [ :debug_return_type ] || 'SandboxProcessorTokenCreateResponse' auth_names = opts [ :debug_auth_names ] || [ 'clientId' , 'plaidVersion' , 'secret' ] new_options = opts . merge ( :operation => :" PlaidApi.sandbox_processor_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#sandbox_processor_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create a test Item and processor token
Use the &#x60;/sandbox/processor_token/create&#x60; endpoint to create a valid &#x60;processor_token&#x60; for an arbitrary institution ID and test credentials.
Create a test Item and processor token Use the &#x60 ; / sandbox / processor_token / create&#x60 ; endpoint to create a valid &#x60 ; processor_token&#x60 ; for an arbitrary institution ID and test credentials .
# verify the required parameter 'sandbox_processor_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
SandboxProcessorTokenCreateResponse data, response status code and response headers
SandboxProcessorTokenCreateResponse data response status code and response headers
Array<(SandboxProcessorTokenCreateResponse, Integer, Hash)>
sandbox_processor_token_create_request
opts
None
opts the optional parameters
opts the optional parameters