Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified de README

  • Loading branch information...
commit 405c0fea16db0dd74a222e439bae8e53545783c0 1 parent ad85344
@foxxor foxxor authored
Showing with 25 additions and 26 deletions.
  1. +25 −26 README.md
View
51 README.md
@@ -1,46 +1,45 @@
# PHP Carrot - VoiceBunny Library
-[PHP Carrot](https://github.com/Voice123/php-carrot) is a PHP class that provides connection to the [VoiceBunny.com](http://voicebunny.com) HTTP RESTful API.
-If you need more information on how to use our module check the [installation guide](https://github.com/Voice123/php-carrot/wiki/installation) or the [tutorial](https://github.com/Voice123/php-carrot/wiki/Use-tutorial).
+[PHP Carrot](https://github.com/VoiceBunny/php-carrot) is a PHP class that provides connection to the [VoiceBunny.com](http://voicebunny.com) HTTP RESTful API.
+If you need more information on how to use our module check the [installation guide](https://github.com/VoiceBunny/php-carrot/wiki/installation) or the [tutorial](https://github.com/VoiceBunny/php-carrot/wiki/Use-tutorial).
### Basic usage
-```python
-# Imports
-import PythonCarrotDev
-import requests
-import simplejson
-from requests.auth import HTTPBasicAuth
+```php
+# Import
+require_once('lib/VoiceBunnyCarrot.php');
# Initialize the module
-vb_carrot = PythonCarrot.VBCarrot('0','XXX')
+$vb_carrot = new VoiceBunnyCarrot('0','XXX');
+
# Get information
-response = vb_carrot.gender_ages()
-print response['genderandages']
+$response = $vb_carrot->gender_ages();
+echo response['genderandages'];
# Post project
-project={
- 'script': "Test project",
- 'specialInstructions': "Posted from Ruby-Carrot",
- 'title' : "Test Project"
-}
-response = vb_carrot.create_project(project)
-print response['project']
+$project= array(
+ 'script' => "Test project",
+ 'specialInstructions' => "Posted from Ruby-Carrot",
+ 'title' => "Test Project"
+);
+$response = $vb_carrot->create_project(project);
+echo response['project'];
# Get a project
-response = vb_carrot.get_project(response['project']['id'])
-print response['projects']
+$response = $vb_carrot->get_project($response['project']['id']);
+echo response['projects'];
```
-### Request a VoiceBunny API Key
-To use this library you need to request an API Key in the [VoiceBunny.com Developer's Section](http://voicebunny.com/developers/token).
+### Request a VoiceBunny API Token
+To use this library you need to request an API Token in the [VoiceBunny.com Developer's Section](http://voicebunny.com/developers/token).
-### Don't you like Python?
-If you're not confortable with Python language, you can also check our other libraries
+### Don't you like PHP?
+If you're not confortable with PHP language, you can also check our other libraries
-* [Ruby Carrot](https://github.com/Voice123/ruby-carrot)
-* Groovy Carrot (Coming Soon)
+* [Python Carrot](https://github.com/VoiceBunny/python-carrot)
+* [Ruby Carrot](https://github.com/VoiceBunny/ruby-carrot)
+* [Groovy Carrot](https://github.com/VoiceBunny/groovy-carrot)
Or why not, build your own library/module from scratch checking the [API documentation](http://voicebunny.com/developers/index).
Please sign in to comment.
Something went wrong with that request. Please try again.