graph_api

MakeGraph

apitalkGraphApiPost

send x and y to get your graph


/apitalk/graph-api/

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/graph-api/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MakeGraphApi;

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

public class MakeGraphApiExample {

    public static void main(String[] args) {
        
        MakeGraphApi apiInstance = new MakeGraphApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Integer x = 56; // Integer | 
        Integer y = 56; // Integer | 
        try {
            apiInstance.apitalkGraphApiPost(apiecoKey, x, y);
        } catch (ApiException e) {
            System.err.println("Exception when calling MakeGraphApi#apitalkGraphApiPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MakeGraphApi;

public class MakeGraphApiExample {

    public static void main(String[] args) {
        MakeGraphApi apiInstance = new MakeGraphApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Integer x = 56; // Integer | 
        Integer y = 56; // Integer | 
        try {
            apiInstance.apitalkGraphApiPost(apiecoKey, x, y);
        } catch (ApiException e) {
            System.err.println("Exception when calling MakeGraphApi#apitalkGraphApiPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
Integer *x = 56; // 
Integer *y = 56; // 

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

// 
[apiInstance apitalkGraphApiPostWith:apiecoKey
    x:x
    y:y
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GraphApi = require('graph_api');

var api = new GraphApi.MakeGraphApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var x = 56; // {Integer} 

var y = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apitalkGraphApiPost(apiecoKey, x, y, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apitalkGraphApiPostExample
    {
        public void main()
        {
            
            var apiInstance = new MakeGraphApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var x = 56;  // Integer | 
            var y = 56;  // Integer | 

            try
            {
                // 
                apiInstance.apitalkGraphApiPost(apiecoKey, x, y);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MakeGraphApi.apitalkGraphApiPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MakeGraphApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$x = 56; // Integer | 
$y = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::MakeGraphApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $x = 56; # Integer | 
my $y = 56; # Integer | 

eval { 
    $api_instance->apitalkGraphApiPost(apiecoKey => $apiecoKey, x => $x, y => $y);
};
if ($@) {
    warn "Exception when calling MakeGraphApi->apitalkGraphApiPost: $@\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.MakeGraphApi()
apiecoKey = apiecoKey_example # String | apikey for use API
x = 56 # Integer | 
y = 56 # Integer | 

try: 
    # 
    api_instance.apitalk_graph_api_post(apiecoKey, x, y)
except ApiException as e:
    print("Exception when calling MakeGraphApi->apitalkGraphApiPost: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
x*
Integer
Required
y*
Integer
Required

Responses

Status: 200 - your graph as png

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error