Source

qwerlypylib /

Filename Size Date modified Message
405 B
1016 B
5.3 KB
101 B
== QwerlyPyLib ==

Python Library for integrating with the qwerly api

=== Example ===

If you do not set a user agent it will default to "QwerlyPyLib"

{{{
#!python

from qwerlypylib import Qwerly

api_key = "REPLACE WITH YOUR API KEY"

api = Qwerly(api_key, "Application User Agent")

# Get Profile
response = api.profile.get_by_email("my_crazy__username@gmail.com")

# Or Get Services
response = api.services.get_by_email("my_crazy__username@gmail.com")

if response.code == 200:
   json = response.body
   # Do what you want with the json
}}}


=== Django Integration ===
If your using Django, you can set the user agent and api key in your django settings by using the follwing in your setting.py file:

{{{
#!python
#settings.py
....

QWERLY_API_KEY = "Your Key Here"
QWERLY_USER_AGENT = "Application User Agent"

....

# your_code.py
from qwerlypylib import Qwerly
api = Qwerly()


}}}

Report issues here in BitBucket or contact mattotodd [at] gmail [dot] com
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.