Download the PHP package turanct/showpad-api without Composer
On this page you can find all versions of the php package turanct/showpad-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download turanct/showpad-api
More information about turanct/showpad-api
Files in turanct/showpad-api
Package showpad-api
Short Description Wrapper for the Showpad API
License MIT
Homepage https://github.com/turanct/showpad-api
Informations about the package showpad-api
Showpad API Wrapper
This is a simple PHP wrapper for the Showpad API. It is built for v2 of the API, and it is currently incomplete.
You can find the Showpad website here
-
Features
The features we support are incomplete. It should be easy to add new ones, and if you do, please send a pull request!
- Basic configuration object. There's an interface so you can make e.g. a
ConfigDatabase
object that implementsConfigInterface
, and things will still work. - OAuth2 authentication
- A few api methods (nothing complete here...)
-
Setup
2.1 Composer
Please use composer to autoload the Showpad api wrapper! Other methods are not encouraged by me.
composer.json
The turanct/showpad-api-guzzle
library is an adapter for guzzle. There should be others available in the future, or you can just create your own.
2.2 Authentication
SHOWPAD_URL
The api url, something likehttps://yournamehere.showpad.biz/api/v2
SHOWPAD_APP_ID
The app's client idSHOWPAD_APP_SECRET
The app's secret
2.2.1 Step 1
2.2.2 Step 2
Please note that the access_token
is valid for only one hour. You'll need to use the refresh flow to get a new access token.
2.2.3 Refresh flow
Please note that the access_token
is valid for only one hour. You'll need to use the refresh flow to get a new access token.
-
Usage