project apis
Rest Api Wrapper for PHP.
paralleldots/apis
Rest Api Wrapper for PHP.
- Thursday, July 5, 2018
- by paralleldots_api
- Repository
- 10 Watchers
- 6 Stars
- 79 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 34 % Grown
ParallelDots-PHP-API
Php Wrapper for ParallelDots APIs, (*1)
Requirement :
- Install cUrl on your system if not present.
- For ubuntu use sudo apt-get install php-curl, (*2)
Installation
- Create a composer.json file in your project's directory.
- Write the following in the file:
{
"require": {
"paralleldots/apis": "*"
},
"minimum-stability": "dev"
}
- Run the following command in the same directory (NOTE: You must have composer installed):
``` sh
composer install
#### Languages Supported
- Portuguese ( pt )
- Simplified Chinese ( zh )
- Spanish ( es )
- German ( de )
- French ( fr )
- Dutch ( nl )
- Italian (it)
- Japanese ( ja )
- Russian ( ru )
- Thai ( th )
- Danish ( da )
- Finish ( fi )
- Arabic (ar)
- Greek (el)
### API Keys & Setup
Sign up for ParallelDots APIs account to get your free API key [here](https://user.apis.paralleldots.com/signing-up). You will receive an email with the details to access your API key.
Configuration:
```sh
<?php
require(__DIR__ . '/vendor/paralleldots/apis/autoload.php');
# Setting your API key
set_api_key("YOUR API KEY");
# Viewing your API key
get_api_key();
?>
Examples
{"taxonomy":[{"category":"world politics","confidence_score":0.5382496715},{"category":"news","confidence_score":0.1232979}]}
";
echo facial_emotion($path_to_image);
?>
";
echo facial_emotion_url($url_to_image);
?>
";
echo object_recognizer($path_to_image);
?>
";
echo object_recognizer_url($url_to_image);
?>
dev-master
9999999-dev
Rest Api Wrapper for PHP.
Sources
Download
The Requires
The Development Requires
rest api wrapper for php
paralleldots