#coding: utf-8
import requests

def Frases():
    get = requests.get("http://allugofrases.herokuapp.com/frases")
    return get.json()

def fraseAleatoria():
    get = requests.get("http://allugofrases.herokuapp.com/frases/random")
    return get.json()

def fraseID(id):
    get = requests.get("http://allugofrases.herokuapp.com/frases/find/" + id)
    return get.json()

def procurarFrase(frase):
    data = {"frase": frase}
    get = requests.post(url="http://allugofrases.herokuapp.com/frases/search", json=data, headers={'Content-Type': "application/json", 'Accept': "application/json"})
    return get.json()

def frasesPorAutor(autor):
    data = {"autor": autor}
    get = requests.post(url="http://allugofrases.herokuapp.com/frases/author", json=data, headers={'Content-Type': "application/json", 'Accept': "application/json"})
    return get.json()

def frasesPorLivro(livro):
    data = {"livro": livro}
    get = requests.post(url="http://allugofrases.herokuapp.com/frases/book", json=data, headers={'Content-Type': "application/json", 'Accept': "application/json"})
    return get.json()

if (__name__ == "__main__"):
    print("Verifique as funções de exemplo do código :)")
e3d0e9f9e482e1a88d5cf2ae49475ba456ceba3f
<mask token>


def Frases():
    get = requests.get('http://allugofrases.herokuapp.com/frases')
    return get.json()


def fraseAleatoria():
    get = requests.get('http://allugofrases.herokuapp.com/frases/random')
    return get.json()


def fraseID(id):
    get = requests.get('http://allugofrases.herokuapp.com/frases/find/' + id)
    return get.json()


<mask token>


def frasesPorAutor(autor):
    data = {'autor': autor}
    get = requests.post(url=
        'http://allugofrases.herokuapp.com/frases/author', json=data,
        headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


def frasesPorLivro(livro):
    data = {'livro': livro}
    get = requests.post(url='http://allugofrases.herokuapp.com/frases/book',
        json=data, headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


<mask token>

<mask token>


def Frases():
    get = requests.get('http://allugofrases.herokuapp.com/frases')
    return get.json()


def fraseAleatoria():
    get = requests.get('http://allugofrases.herokuapp.com/frases/random')
    return get.json()


def fraseID(id):
    get = requests.get('http://allugofrases.herokuapp.com/frases/find/' + id)
    return get.json()


def procurarFrase(frase):
    data = {'frase': frase}
    get = requests.post(url=
        'http://allugofrases.herokuapp.com/frases/search', json=data,
        headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


def frasesPorAutor(autor):
    data = {'autor': autor}
    get = requests.post(url=
        'http://allugofrases.herokuapp.com/frases/author', json=data,
        headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


def frasesPorLivro(livro):
    data = {'livro': livro}
    get = requests.post(url='http://allugofrases.herokuapp.com/frases/book',
        json=data, headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


<mask token>

<mask token>


def Frases():
    get = requests.get('http://allugofrases.herokuapp.com/frases')
    return get.json()


def fraseAleatoria():
    get = requests.get('http://allugofrases.herokuapp.com/frases/random')
    return get.json()


def fraseID(id):
    get = requests.get('http://allugofrases.herokuapp.com/frases/find/' + id)
    return get.json()


def procurarFrase(frase):
    data = {'frase': frase}
    get = requests.post(url=
        'http://allugofrases.herokuapp.com/frases/search', json=data,
        headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


def frasesPorAutor(autor):
    data = {'autor': autor}
    get = requests.post(url=
        'http://allugofrases.herokuapp.com/frases/author', json=data,
        headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


def frasesPorLivro(livro):
    data = {'livro': livro}
    get = requests.post(url='http://allugofrases.herokuapp.com/frases/book',
        json=data, headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


if __name__ == '__main__':
    print('Verifique as funções de exemplo do código :)')

import requests


def Frases():
    get = requests.get('http://allugofrases.herokuapp.com/frases')
    return get.json()


def fraseAleatoria():
    get = requests.get('http://allugofrases.herokuapp.com/frases/random')
    return get.json()


def fraseID(id):
    get = requests.get('http://allugofrases.herokuapp.com/frases/find/' + id)
    return get.json()


def procurarFrase(frase):
    data = {'frase': frase}
    get = requests.post(url=
        'http://allugofrases.herokuapp.com/frases/search', json=data,
        headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


def frasesPorAutor(autor):
    data = {'autor': autor}
    get = requests.post(url=
        'http://allugofrases.herokuapp.com/frases/author', json=data,
        headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


def frasesPorLivro(livro):
    data = {'livro': livro}
    get = requests.post(url='http://allugofrases.herokuapp.com/frases/book',
        json=data, headers={'Content-Type': 'application/json', 'Accept':
        'application/json'})
    return get.json()


if __name__ == '__main__':
    print('Verifique as funções de exemplo do código :)')

#coding: utf-8
import requests

def Frases():
    get = requests.get("http://allugofrases.herokuapp.com/frases")
    return get.json()

def fraseAleatoria():
    get = requests.get("http://allugofrases.herokuapp.com/frases/random")
    return get.json()

def fraseID(id):
    get = requests.get("http://allugofrases.herokuapp.com/frases/find/" + id)
    return get.json()

def procurarFrase(frase):
    data = {"frase": frase}
    get = requests.post(url="http://allugofrases.herokuapp.com/frases/search", json=data, headers={'Content-Type': "application/json", 'Accept': "application/json"})
    return get.json()

def frasesPorAutor(autor):
    data = {"autor": autor}
    get = requests.post(url="http://allugofrases.herokuapp.com/frases/author", json=data, headers={'Content-Type': "application/json", 'Accept': "application/json"})
    return get.json()

def frasesPorLivro(livro):
    data = {"livro": livro}
    get = requests.post(url="http://allugofrases.herokuapp.com/frases/book", json=data, headers={'Content-Type': "application/json", 'Accept': "application/json"})
    return get.json()

if (__name__ == "__main__"):
    print("Verifique as funções de exemplo do código :)")