-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
953 additions
and
1,082 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 9334b085b500e0ada775369d69869b63 | ||
config: e486eb93cce7797af9117eab10fdefc1 | ||
tags: fbb0d17656682115ca4d033fb2f83ba1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
========= | ||
API Tools | ||
========= | ||
|
||
It should be easy to interact with the API using any standard HTTP | ||
library. | ||
|
||
We'll give some specific interaction examples here. | ||
|
||
|
||
Python | ||
------ | ||
|
||
If you're using Python, we recommend you check out the small and | ||
simple `slumber <https://github.com/dstufft/slumber/>`_ library, | ||
which makes it really easy to work with RESTful APIs like the LocalWiki API. | ||
Here's some examples using slumber with the LocalWiki API:: | ||
|
||
import slumber | ||
api = slumber.API('http://detroitwiki.org/api/') | ||
username = 'myusername' | ||
api_key = 'apikey' | ||
|
||
# Get all pages | ||
api.page.get() | ||
|
||
# Find all pages whose page name starts with 'Detroit', case | ||
# insensitive: | ||
api.page.get(name__istartswith='detroit') | ||
|
||
# Get detail about a particular, known page | ||
api.page('Front Page') | ||
|
||
# Create a new page | ||
api.page.post({'name': 'My new page', 'content': '<p>Hello.</p>'}, | ||
username=username, api_key=api_key) | ||
|
||
|
||
Ruby | ||
---- | ||
|
||
Work has begun on a Ruby API client. Check it out at https://github.com/codeforseattle/localwiki_client. It's in a very early stage at this point, so you may want to help with its development! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.