getAllChanges
Get all changes
/changes/all
Usage and SDK Samples
curl -X GET "https://ivanik.ru/api/changes/all"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChangesApi;
import java.io.File;
import java.util.*;
public class ChangesApiExample {
public static void main(String[] args) {
ChangesApi apiInstance = new ChangesApi();
String token = token_example; // String | Your secure token
try {
ChangeResponse result = apiInstance.getAllChanges(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChangesApi#getAllChanges");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChangesApi;
public class ChangesApiExample {
public static void main(String[] args) {
ChangesApi apiInstance = new ChangesApi();
String token = token_example; // String | Your secure token
try {
ChangeResponse result = apiInstance.getAllChanges(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChangesApi#getAllChanges");
e.printStackTrace();
}
}
}
String *token = token_example; // Your secure token
ChangesApi *apiInstance = [[ChangesApi alloc] init];
// Get all changes
[apiInstance getAllChangesWith:token
completionHandler: ^(ChangeResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var MagtuPairsApi = require('magtu_pairs_api');
var api = new MagtuPairsApi.ChangesApi()
var token = token_example; // {String} Your secure token
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAllChanges(token, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAllChangesExample
{
public void main()
{
var apiInstance = new ChangesApi();
var token = token_example; // String | Your secure token
try
{
// Get all changes
ChangeResponse result = apiInstance.getAllChanges(token);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChangesApi.getAllChanges: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ChangesApi();
$token = token_example; // String | Your secure token
try {
$result = $api_instance->getAllChanges($token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChangesApi->getAllChanges: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChangesApi;
my $api_instance = WWW::SwaggerClient::ChangesApi->new();
my $token = token_example; # String | Your secure token
eval {
my $result = $api_instance->getAllChanges(token => $token);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ChangesApi->getAllChanges: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ChangesApi()
token = token_example # String | Your secure token
try:
# Get all changes
api_response = api_instance.get_all_changes(token)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChangesApi->getAllChanges: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
token* |
String
Your secure token
Required
|