Code Monkey home page Code Monkey logo

betaseries.api's Introduction

Build status

BetaSeries.API

Universal Windows 10 C# API pour BetaSéries

Utilisation


Pour pouvoir utiliser l'API, il est nécessaire de faire une demande de clé API via le formulaire de demande de clé développeur.

Authentification

var memberService = new MemberService { ApiKey = "VOTRE_CLE_API", UserAgent = "VOTRE_USER_AGENT };
var rootAuth = memberService.AuthASync("VOTRE_LOGIN", "VOTRE_MOT_DE_PASSE");

L'objet rootAuth contient la propriété Token qui vous sera utile lors de l'utilisation de l'API afin d'intéragir avec votre compte BetaSéries.

Détail d'un épisode

var episodeService = new EpisodeService { ApiKey = "VOTRE_CLE_API", UserAgent = "VOTRE_USER_AGENT, Token = "VOTRE_TOKEN_UTILISATEUR" };
var episode = episodeService.GetASync(episodeId);

Projet de test

Un projet de test existe afin de tester les différentes méthodes de l'API.

Avant de pouvoir tester l'API, vous devez remplacer le contenu du fichier TestSettings.cs afin d'utiliser votre clé API, votre user agent et votre token utilisateur.

public static class TestSettings
{
	public static string Token = "VOTRE_TOKEN_UTILISATEUR";
	public static string ApiKey = "VOTRE_CLE_API";
	public static string UserAgent = "VOTRE_USER_AGENT";
}

Contribution


Pour contribuer au projet, il vous suffit de m'envoyer vos pull request :p

Remarque importante

La tabulation et l'indentation de mon éditeur ont une taille de 4 et les espaces sont remplacés par des tabulations.

Sous Visual Studio la combinaisons de touches CTRL+K+D vous permettra d'aligner le code et de remplacer les espaces en trop par des tabulations si nécessaire.

Librairies utilisées

L'API utilise les librairies suivantes :

Clé API

Afin de pouvoir utiliser l'API de BetaSéries vous devez faire la demande d'une clé : https://www.betaseries.com/api/

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.