getDataGet

Retrieve specifc dataset and metadata


/get_data

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://api.metapsy.org/api/get_data?shorthand=&version="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String shorthand = shorthand_example; // String | 
        String version = version_example; // String | 
        try {
            apiInstance.getDataGet(shorthand, version);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getDataGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String shorthand = shorthand_example; // String | 
        String version = version_example; // String | 
        try {
            apiInstance.getDataGet(shorthand, version);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getDataGet");
            e.printStackTrace();
        }
    }
}
String *shorthand = shorthand_example; // 
String *version = version_example; //  (optional) (default to latest)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Retrieve specifc dataset and metadata
[apiInstance getDataGetWith:shorthand
    version:version
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MetapsyApi = require('metapsy_api');

var api = new MetapsyApi.DefaultApi()
var shorthand = shorthand_example; // {{String}} 
var opts = { 
  'version': version_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getDataGet(shorthand, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getDataGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var shorthand = shorthand_example;  // String | 
            var version = version_example;  // String |  (optional)  (default to latest)

            try
            {
                // Retrieve specifc dataset and metadata
                apiInstance.getDataGet(shorthand, version);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getDataGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$shorthand = shorthand_example; // String | 
$version = version_example; // String | 

try {
    $api_instance->getDataGet($shorthand, $version);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getDataGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $shorthand = shorthand_example; # String | 
my $version = version_example; # String | 

eval { 
    $api_instance->getDataGet(shorthand => $shorthand, version => $version);
};
if ($@) {
    warn "Exception when calling DefaultApi->getDataGet: $@\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.DefaultApi()
shorthand = shorthand_example # String | 
version = version_example # String |  (optional) (default to latest)

try: 
    # Retrieve specifc dataset and metadata
    api_instance.get_data_get(shorthand, version=version)
except ApiException as e:
    print("Exception when calling DefaultApi->getDataGet: %s\n" % e)

Parameters

Query parameters
Name Description
shorthand*
String
Required
version
String

Responses

Status: 200 - OK

Status: 500 - Internal Server Error

Status: default - Default response.


listDataGet

List all available datasets


/list_data

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://api.metapsy.org/api/list_data"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listDataGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listDataGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listDataGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listDataGet");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// List all available datasets
[apiInstance listDataGetWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MetapsyApi = require('metapsy_api');

var api = new MetapsyApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.listDataGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listDataGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();

            try
            {
                // List all available datasets
                apiInstance.listDataGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listDataGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

try {
    $api_instance->listDataGet();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->listDataGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    $api_instance->listDataGet();
};
if ($@) {
    warn "Exception when calling DefaultApi->listDataGet: $@\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.DefaultApi()

try: 
    # List all available datasets
    api_instance.list_data_get()
except ApiException as e:
    print("Exception when calling DefaultApi->listDataGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 500 - Internal Server Error

Status: default - Default response.