Skip to content

Instantly share code, notes, and snippets.

View sdieunidou's full-sized avatar
🏠
Working from home

Seb sdieunidou

🏠
Working from home
View GitHub Profile
@sdieunidou
sdieunidou / Api.md
Last active September 7, 2018 11:22
Api.md

Initialiser une API Rest, avec la ressource /api/tweets. Les méthodes suivantes seront implémentés :

  • cget(): retourne la liste de tous les tweets
  • get($id): retourne un tweet par son ID
  • post(): création d'un Tweet
<?php
// READ: https://mtxserv.com/forums/threads/api-game-viewer.295/
// Example usage of API Game Viewer (mtxserv.com)
$urlToken = 'https://mtxserv.com/oauth/v2/token?';
$urlViewer = 'https://mtxserv.com/api/v1/viewers/game?';
$query = array(
'grant_type' => 'https://mtxserv.com/grants/api_key',
'client_id' => '', // A Editer
@matthewmccullough
matthewmccullough / git-deletealltags.bsh
Created April 1, 2011 20:29
Script to delete all tags both locally and remotely
for t in `git tag`
do
git push origin :$t
git tag -d $t
done