Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Markdown formatting #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
##Thingiverse
## Thingiverse
A PHP wrapper for the Thingiverse API.

###Motivation
### Motivation
Making awesome things easier!

##Use
###Configuration
## 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
### 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
## License
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down