https://github.com/makerbot/thingiverse-php
A PHP wrapper for the Thingiverse API.
https://github.com/makerbot/thingiverse-php
Last synced: 5 months ago
JSON representation
A PHP wrapper for the Thingiverse API.
- Host: GitHub
- URL: https://github.com/makerbot/thingiverse-php
- Owner: makerbot
- License: mit
- Created: 2013-07-22T23:30:28.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T17:33:33.000Z (almost 4 years ago)
- Last Synced: 2023-03-10T20:23:07.278Z (over 3 years ago)
- Language: PHP
- Homepage: http://www.thingiverse.com/developers
- Size: 232 KB
- Stars: 11
- Watchers: 3
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
##Thingiverse
A PHP wrapper for the Thingiverse API.
###Motivation
Making awesome things easier!
##Use
###Configuration
1. Login at http://www.thingiverse.com/developers
2. Click on your app, then 'Edit this app'
3. In the thingiverse.php `__construct()` method, enter your Client ID and Client Secret (from the Thingiverse.com app page) into `$this->client_id` and `$this->client_secret`
4. Optionally enter your URL for Thingiverse to forward the user (and OAuth code) to in `$this->redirect_uri`
###Implementation
1. Import thingiverse.php `require_once 'thingiverse.php';`
2. Create a new instance `$thingiverse = new Thingiverse();`. Optionally enter an access token (if you have it) as a parameter (skip the next two steps if you do this)
3. Use `$thingiverse->makeLoginURL();` to create a link to authorize a user account for your app
4. Once you receive a code from Thingiverse, `$thingiverse->oAuth('code here');`
5. You're all set!
##License
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.