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
|