GithubHelp home page GithubHelp logo

api-test's Introduction

Blagues API

Blagues API

API de Blagues françaises collaborative et Open Source

Contributors Stars License Donate

Sommaire

Retrouvez ici les différentes catégories du README


Utilisation

Avant toute utilisation de l'API veuillez générer votre token Bearer en vous authentifiant avec votre compte Discord sur le site blagues-api.fr.

Une fois le token généré voici quelques exemples vous permettant d'utiliser l'API

Attention ! Pensez à remplacer <token> par votre propre token

// Javascript
import fetch from "node-fetch" 

fetch('https://www.blagues-api.fr/api/random', {
  headers: {
    'Authorization': 'Bearer <token>'
  }
})
.then(response => {
  console.log(response)
  /* Expected output:
  { 
    id: 1, 
    joke: 'Question', 
    anwser: 'Response' 
  }
  */
})
# Python
import requests

response = requests.get(
  'https://www.blagues-api.fr/api/random', 
  headers = { 
    'Authorization': 'Bearer <token>'
  }
)
data = response.json()
print(response)
# Expected output:
# { 
#   id: 1, 
#   joke: 'Question', 
#   anwser: 'Response' 
# }

Contribuer

  1. 🍴 Fork le projet !
  2. 🔨 Fais tes modifications !
  3. Commit tes modifications !
  4. 🚀 Push tes commits
  5. 🔃 Crée une pull request depuis https://github.com/Blagues-API/api/compare.

FAQ

  • Pouvons nous proposer des blagues ?
    • Oui bien sûr en rejoignant le serveur Blagues API un salon y est dédié !

Support

Voici quelques liens pour obtenir de l'aide :


Donations

Si vous souhaitez me soutenir, c'est possible grâce à PayPal

Donate


License

License

Copyright 2020-2021 © DraftMan.

api-test's People

Contributors

ussopia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.