seo-pixel-width

Pixel

pixelFromText

Compute pixels width and remaining width of a title or/and description.


/apitalk/seo-pixel-width/pixels

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/seo-pixel-width/pixels"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PixelApi;

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

public class PixelApiExample {

    public static void main(String[] args) {
        
        PixelApi apiInstance = new PixelApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String title = title_example; // String | the title to analyze
        String description = description_example; // String | the description to analyze
        try {
            response result = apiInstance.pixelFromText(apiecoKey, title, description);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PixelApi#pixelFromText");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PixelApi;

public class PixelApiExample {

    public static void main(String[] args) {
        PixelApi apiInstance = new PixelApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String title = title_example; // String | the title to analyze
        String description = description_example; // String | the description to analyze
        try {
            response result = apiInstance.pixelFromText(apiecoKey, title, description);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PixelApi#pixelFromText");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *title = title_example; // the title to analyze
String *description = description_example; // the description to analyze

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

// 
[apiInstance pixelFromTextWith:apiecoKey
    title:title
    description:description
              completionHandler: ^(response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SeoPixelWidth = require('seo_pixel_width');

var api = new SeoPixelWidth.PixelApi()

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

var title = title_example; // {String} the title to analyze

var description = description_example; // {String} the description to analyze


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pixelFromText(apiecoKey, title, description, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pixelFromTextExample
    {
        public void main()
        {
            
            var apiInstance = new PixelApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var title = title_example;  // String | the title to analyze
            var description = description_example;  // String | the description to analyze

            try
            {
                // 
                response result = apiInstance.pixelFromText(apiecoKey, title, description);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PixelApi.pixelFromText: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PixelApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$title = title_example; // String | the title to analyze
$description = description_example; // String | the description to analyze

try {
    $result = $api_instance->pixelFromText($apiecoKey, $title, $description);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PixelApi->pixelFromText: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PixelApi;

my $api_instance = WWW::SwaggerClient::PixelApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $title = title_example; # String | the title to analyze
my $description = description_example; # String | the description to analyze

eval { 
    my $result = $api_instance->pixelFromText(apiecoKey => $apiecoKey, title => $title, description => $description);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PixelApi->pixelFromText: $@\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.PixelApi()
apiecoKey = apiecoKey_example # String | apikey for use API
title = title_example # String | the title to analyze
description = description_example # String | the description to analyze

try: 
    # 
    api_response = api_instance.pixel_from_text(apiecoKey, title, description)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PixelApi->pixelFromText: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
title*
String
the title to analyze
Required
description*
String
the description to analyze
Required

Responses

Status: 200 - This REST API return HTTP responses in list of this JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


pixelFromUrl

Compute pixels width and remaining width of a page title and description.


/apitalk/seo-pixel-width/pixels_url

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/seo-pixel-width/pixels_url"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PixelApi;

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

public class PixelApiExample {

    public static void main(String[] args) {
        
        PixelApi apiInstance = new PixelApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String url = url_example; // String | the url to analyze
        try {
            response result = apiInstance.pixelFromUrl(apiecoKey, url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PixelApi#pixelFromUrl");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PixelApi;

public class PixelApiExample {

    public static void main(String[] args) {
        PixelApi apiInstance = new PixelApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String url = url_example; // String | the url to analyze
        try {
            response result = apiInstance.pixelFromUrl(apiecoKey, url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PixelApi#pixelFromUrl");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *url = url_example; // the url to analyze

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

// 
[apiInstance pixelFromUrlWith:apiecoKey
    url:url
              completionHandler: ^(response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SeoPixelWidth = require('seo_pixel_width');

var api = new SeoPixelWidth.PixelApi()

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

var url = url_example; // {String} the url to analyze


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

namespace Example
{
    public class pixelFromUrlExample
    {
        public void main()
        {
            
            var apiInstance = new PixelApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var url = url_example;  // String | the url to analyze

            try
            {
                // 
                response result = apiInstance.pixelFromUrl(apiecoKey, url);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PixelApi.pixelFromUrl: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PixelApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$url = url_example; // String | the url to analyze

try {
    $result = $api_instance->pixelFromUrl($apiecoKey, $url);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PixelApi->pixelFromUrl: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PixelApi;

my $api_instance = WWW::SwaggerClient::PixelApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $url = url_example; # String | the url to analyze

eval { 
    my $result = $api_instance->pixelFromUrl(apiecoKey => $apiecoKey, url => $url);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PixelApi->pixelFromUrl: $@\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.PixelApi()
apiecoKey = apiecoKey_example # String | apikey for use API
url = url_example # String | the url to analyze

try: 
    # 
    api_response = api_instance.pixel_from_url(apiecoKey, url)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PixelApi->pixelFromUrl: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
url*
String
the url to analyze
Required

Responses

Status: 200 - This REST API return HTTP responses in list of this JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error