API Wrapper for sv443's joke api
Project description
JokeAPI Wrapper by TheWever
Import jokeapie
import jokepie # imports package
Create a client
client = jokepie.Client() # returns client objects
Get a joke
joke = client.get_joke() # returns Joke object
Post a joke
client.upload_joke('Insert Joke', 'category') # returns True on exception
Sample:
import jokepie
client = jokepie.Client()
joke = client.get_joke('dog')
print(joke.joke)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jokepie-1.0.1.tar.gz
(4.9 kB
view hashes)