Sha256: b6f6971d8a47644b58ea4a6d879b0f34df4a58a75c1c44f234a588f5e1c08891
Contents?: true
Size: 1.56 KB
Versions: 5
Compression:
Stored size: 1.56 KB
Contents
# VeloPayments::TokensApi All URIs are relative to *https://api.sandbox.velopayments.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**resend_token**](TokensApi.md#resend_token) | **POST** /v2/users/{userId}/tokens | Resend a token ## resend_token > resend_token(user_id, resend_token_request) Resend a token <p>Resend the specified token </p> <p>The token to resend must already exist for the user </p> <p>It will be revoked and a new one issued</p> ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::TokensApi.new user_id = 'user_id_example' # String | The UUID of the User. resend_token_request = VeloPayments::ResendTokenRequest.new # ResendTokenRequest | The type of token to resend begin #Resend a token api_instance.resend_token(user_id, resend_token_request) rescue VeloPayments::ApiError => e puts "Exception when calling TokensApi->resend_token: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **user_id** | [**String**](.md)| The UUID of the User. | **resend_token_request** | [**ResendTokenRequest**](ResendTokenRequest.md)| The type of token to resend | ### Return type nil (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json
Version data entries
5 entries across 5 versions & 1 rubygems