All Projects β†’ rest7 β†’ api

rest7 / api

Licence: other
Free Rest Webservices

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to api

pinipig
πŸš€ Performant webservice framework
Stars: ✭ 25 (+25%)
Mutual labels:  webservice, restapi
the-traveler
The Traveler is a small npm package which wraps around the Destiny 2 API.
Stars: ✭ 52 (+160%)
Mutual labels:  api-wrapper
py-vkontakte
A Python wrapper around the vk.com
Stars: ✭ 17 (-15%)
Mutual labels:  api-wrapper
python-censusbatchgeocoder
A simple Python wrapper for U.S. Census Geocoding Services API batch service
Stars: ✭ 40 (+100%)
Mutual labels:  api-wrapper
tatsumaki.js
A api wrapper for the Tatsumaki Discord Bot API
Stars: ✭ 9 (-55%)
Mutual labels:  api-wrapper
scala-weather
High-performance Scala library for looking up the weather
Stars: ✭ 45 (+125%)
Mutual labels:  api-wrapper
ZmopSharp
ZMOP (θŠιΊ»δΏ‘η”¨εΌ€ζ”ΎεΉ³ε°) SDK for .NET
Stars: ✭ 11 (-45%)
Mutual labels:  api-wrapper
NasdaqCloudDataService-SDK-Java
Nasdaq Data Link provides a modern and efficient method of delivery for real-time exchange data and other financial information. This repository provides a Java SDK for developing applications using Nasdaq Data Link's real-time data.
Stars: ✭ 70 (+250%)
Mutual labels:  restapi
wp-pgp-encrypted-emails
πŸ” πŸ“§ Encrypts WordPress emails using OpenPGP or S/MIME with a familiar API.
Stars: ✭ 35 (+75%)
Mutual labels:  api-wrapper
gtmetrix-net
GTmetrix .Net client
Stars: ✭ 16 (-20%)
Mutual labels:  api-wrapper
go-ovh
Simple go wrapper for the OVH API
Stars: ✭ 107 (+435%)
Mutual labels:  api-wrapper
acord
An API wrapper for discord, built using aiohttp and pydantic.
Stars: ✭ 25 (+25%)
Mutual labels:  api-wrapper
asyncpixel
An Asyncronous Python wrapper for the Hypixel API.
Stars: ✭ 22 (+10%)
Mutual labels:  api-wrapper
bitflyer
⚑ bitFlyer API wrapper for Ruby
Stars: ✭ 25 (+25%)
Mutual labels:  api-wrapper
DPP
C++ Discord API Bot Library - D++ is Lightweight and scalable for small and huge bots!
Stars: ✭ 560 (+2700%)
Mutual labels:  api-wrapper
hackerone-client
An unofficial wrapper for the HackerOne API
Stars: ✭ 55 (+175%)
Mutual labels:  api-wrapper
pybuildkite
A Python library for the Buildkite API
Stars: ✭ 29 (+45%)
Mutual labels:  api-wrapper
roux
Simple and (a)synchronous Reddit API wrapper for Rust.
Stars: ✭ 41 (+105%)
Mutual labels:  api-wrapper
nextjs-woocommerce-restapi
A React WooCommerce Project Example With REST API
Stars: ✭ 168 (+740%)
Mutual labels:  restapi
grapevine
Fast, unopinionated, embeddable, minimalist web framework for .NET
Stars: ✭ 72 (+260%)
Mutual labels:  restapi

REST7 API

Collection of free web services. No registration required. Wizards available at:

How to use the webservices?

There's two possibilities:

  • check the wizards at rest7.com and generate simple code pieces you need
  • download the library from this repository

Using a webservice

You can use a webservice from PHP just like that:

//lets convert image from JPEG to PNG using "image_convert"
$url = 'http://api.rest7.com/v1/image_convert.php?url=http://server.com/image.jpg';

//call API method
$data = json_decode(file_get_contents($url));

//fetch converted image
$image = file_get_contents($data->image);

//save fetched image to disk
file_put_contents('output.png', $image); 

Or you can use a very simple PHP library rest7.php

Example 1: converting image from PNG to DDS

include 'rest7.php';

//load an image from file:
$im = imagecreatefrompng('test.png'); //using a resource, or:
$im = 'http://server.com/dir/test.png'; //using an URL or:
$im = 'dir/test.png'; //using a local file

//convert to DDS
$dds = convertImage7($im, 'dds');

if (!$dds)
{
	echo 'Conversion failed';
}
else
{
	//save to file
	file_put_contents('output.dds', $dds);
}

Example 2: checking if image was upscaled

include 'rest7.php';

//load an image from file:
$im = imagecreatefrompng('test.png'); //using a resource, or:
$im = 'http://server.com/dir/test.png'; //using an URL or:
$im = 'dir/test.png'; //using a local file

$res = imageUpscaled7($im);
if ($res === false)
{
	echo 'Function failed';
}
else if ($res)
{
	echo 'Image was upscaled';
}
else
{
	echo 'Image was not upscaled';
}

And if you just want to load images in different format you can use imagecreatefromfile7.php

Example 1: converting image from PNG to DDS

include 'imagecreatefromfile7.php';

$im = imagecreatefrompsd('image.psd');
imagepng($im, 'output.png');

Available API webservices

Image:

  • image_convert (convert an image from one format to another, eg. convert from PNG to GIF)
  • image_filter (apply a filter to an image, eg. make it grayscale)
  • image_upscaled (checks if an image was upscaled)
  • png_lossless (losslessy converts a PNG image into a smaller PNG)
  • png_lossy (convert a PNG image into a smaller PNG using lossy compression)
  • jpeg_optim (removes all metadata from JPEG images, including thumbnails and EXIF)
  • gif_lossy (convert a GIF image into a smaller GIF using lossy compression)
  • raster_to_vector (converts a raster image into a vector image, eg. PNG-->SVG)
  • visual_hash (calculates visual hash of an image; visual hashes can be used to compare images visually)

Currency:

  • currency_convert (converts various amounts of money between currencies, eg. EUR-->USD)

File:

  • file_hash (calculates hash and checksum values, eg. MD5, CRC32)

Text:

  • text_transform (transforms text, eg. makes text uppercase)
  • text_hash (calculates hash and checksum values, eg. MD5, CRC32)

HTML:

  • html_to_image (converts HTML document into an image)
  • html_to_text (converts HTML document into text)
  • html_to_pdf (converts HTML document into PDF)

Wikipedia:

  • wikipedia_search (finds articles)
  • wikipedia_page (returns a wikipedia article in HTML or plaintext format)

PDF:

  • pdf_images (extracts images from a PDF document)
  • pdf_info (returns information about a PDF document, including used fonts)
  • pdf_split (extracts a single page from a PDF document)
  • pdf_to_html (converts a PDF document to an HTML page)
  • pdf_to_image (converts a PDF document into an image)
  • pdf_to_text (converts a PDF document into plaintext)

Available PHP functions in rest7.php

Not all API methods are available as PHP functions in rest7.php

Currently available are:

  • imageUpscaled7($image)
  • convertImage7($image, $outputFormat = 'png', $returnURL = false)

Available PHP functions in imagecreatefromfile7.php

Not all API methods are available as PHP functions in imagecreatefromfile7.php

Currently available are:

  • function imagecreatefromcin($fileName)
  • function imagecreatefromsct($fileName)
  • function imagecreatefrompix($fileName)
  • function imagecreatefrommtv($fileName)
  • function imagecreatefromjbg($fileName)
  • function imagecreatefromdpx($fileName)
  • function imagecreatefromdcx($fileName)
  • function imagecreatefromrla($fileName)
  • function imagecreatefromfts($fileName)
  • function imagecreatefromtga($fileName)
  • function imagecreatefrompbm($fileName)
  • function imagecreatefrompnm($fileName)
  • function imagecreatefromppm($fileName)
  • function imagecreatefrompgm($fileName)
  • function imagecreatefrompcx($fileName)
  • function imagecreatefrombmp($fileName)
  • function imagecreatefromico($fileName)
  • function imagecreatefrompsd($fileName)
  • function imagecreatefromdds($fileName)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].