3cpt / andgearbest

A C# wrapper for Gearbest Associate Program api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AndGearbest

Sublime's custom image

Build Status NuGet version

dotnet API Client for the Gearbest Associate Program api

Installation

Install AndGearbest through NuGet:

PM> Install-Package AndGearbest

Usage

Note: Check dev branch for next features or improves

Main API

First of all, in order to use the api you need to be a member of the Gearbest Affiliate program and susbcribed to the API in order to get an ApiKey and ApiSecret.

Create an instance of GearbestApi (implements IGearbestApi interface)

var api = AndGearbestApi.GetGearbestApi(<API_KEY>, <API_SECRET>, <LKID(optional)>);

To get a coupons:

  var coupons = await api.GetCouponsAsync();

Note: if any lkid as send, it uses a default lkid.

Contribution

Any pull request or suggestion is welcome.

Libraries used

This wrapper uses Newtonsoft.Json.

License

MIT license.

Disclaimer

Andgearbest isn't an official version or isn't build with relation to Gearbest registered trademarks. This is an indepent project. This project uses the information and documention provided by Gearbest Associate/Affiliate Program.

Thanks

To Ben Fradet

About

A C# wrapper for Gearbest Associate Program api

License:MIT License


Languages

Language:C# 100.0%