ghassani / surveymonkey-v3-api-php
Installs: 21 605
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 4
Forks: 23
Open Issues: 3
Requires
- php: >=5.5
- ext-json: *
- guzzlehttp/guzzle: 6.*@stable
This package is auto-updated.
Last update: 2024-10-24 01:37:02 UTC
README
A simple SurveyMonkey API wrapper for version 3 of their API.
Requirements
- PHP 5.5+
- Composer - http://www.getcomposer.org
Installation
Add the following to your composer.json under require:
"require": {
"ghassani/surveymonkey-v3-api-php": "1.*"
},
Usage
-
Initiate a client with a long lived token:
$client = new Spliced\SurveyMonkey\Client(MY_API_KEY, MY_API_TOKEN);
-
Make calls:
$client->getSurveys([]);
Check out src/Api/*Trait.php
for exposed methods in the Client class. There are also some additional usage examples in the incomplete test suite.
OAuth
Check out authenticator/index.php
as an example of how to get a long lived token and authorize a user. You can also get a long lived token from your developer console if you are not requiring users to authenticate and just trying to work with your own account.