termsAndConditions
Decodes the supplied token and Accepts Terms and Condtions.
Decodes the supplied token and Accepts Terms and Condtions.
/Spenda/Widget/TermsAndConditions
Usage and SDK Samples
curl -X POST \
-H "Accept: application/json" \
"https://api.dev.spenda.co/api/Spenda/Widget/TermsAndConditions?t=t_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String t = t_example; // String | Secure token used to configure the Widget
try {
apiInstance.termsAndConditions(t);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#termsAndConditions");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String t = new String(); // String | Secure token used to configure the Widget
try {
final result = await api_instance.termsAndConditions(t);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->termsAndConditions: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String t = t_example; // String | Secure token used to configure the Widget
try {
apiInstance.termsAndConditions(t);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#termsAndConditions");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *t = t_example; // Secure token used to configure the Widget (default to null)
// Decodes the supplied token and Accepts Terms and Condtions.
[apiInstance termsAndConditionsWith:t
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SpendaServicesWidget = require('spenda_services_widget');
// Create an instance of the API class
var api = new SpendaServicesWidget.DefaultApi()
var t = t_example; // {String} Secure token used to configure the Widget
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.termsAndConditions(t, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class termsAndConditionsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var t = t_example; // String | Secure token used to configure the Widget (default to null)
try {
// Decodes the supplied token and Accepts Terms and Condtions.
apiInstance.termsAndConditions(t);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.termsAndConditions: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$t = t_example; // String | Secure token used to configure the Widget
try {
$api_instance->termsAndConditions($t);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->termsAndConditions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $t = t_example; # String | Secure token used to configure the Widget
eval {
$api_instance->termsAndConditions(t => $t);
};
if ($@) {
warn "Exception when calling DefaultApi->termsAndConditions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
t = t_example # String | Secure token used to configure the Widget (default to null)
try:
# Decodes the supplied token and Accepts Terms and Condtions.
api_instance.terms_and_conditions(t)
except ApiException as e:
print("Exception when calling DefaultApi->termsAndConditions: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let t = t_example; // String
let mut context = DefaultApi::Context::default();
let result = client.termsAndConditions(t, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| t* |
String
Secure token used to configure the Widget
Required
|