Download the PHP package ghosh/designernews-php-api without Composer
On this page you can find all versions of the php package ghosh/designernews-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ghosh/designernews-php-api
More information about ghosh/designernews-php-api
Files in ghosh/designernews-php-api
Package designernews-php-api
Short Description A simple php wrapper for the Designer News API.
License MIT
Homepage https://github.com/Ghosh/DesignerNews-PHP-API
Informations about the package designernews-php-api
Designer News PHP API
About
A simple php wrapper for the Designer News API.
Requirements
- PHP 5.3.x or higher
- cURL
- A valid Designer News Access Token
oAuth 2
This library assumes that you have already acquired a valid Access Token using your preferred oAuth library.
Please note that as of this writing, the Designer News API only supports ClientCredentials and Password Grant Types.
Getting Started
You can either download the latest version from the repo, or alternatively install it as a dependency with Composer.
Installing with Composer
Then run composer.phar install
from your command line in your application root folder.
Instantiating the class
This creates a new instance of the Designer News API class and assigns it to the $DN
handle. Its recommended to wrap this in a try
/catch
block to handle any errors that may arise.
Configuration Options
accessToken
Required - This is the access token which would be provided to you by your oauth libraryapiVersionSegment
Optional - The current api version. Will default tov1
userAgent
Optional - The user agent for the application. Designer News recommends setting it to your email address so that you can be contacted if any misuse of data is detected. Defaults todesigner-news-api-php-wrapper
Available Methods
The wrapper includes convenient methods used to perform HTTP requests on behalf of the authenticated user. Below you will find a list of all available methods.
User
Stories
Comments
MOTD (Message of the day)
Response Type
All responses from the Designer News API PHP Wrapper are returned as PHP objects.
Feedback and Bugs
Feel free to open a new issue here on github for any bug you may have come across or a feature which you would like added. Pull requests are most welcomed.
History
Designer News 1.0
release
- Initial Public Releasefeature
- Added Packagist support
Designer News 0.1
release
- Public Beta Release