Ejemplo n.º 1
0
        internal static Task <Response <UniqId> > Put(string endpoint, Sellix instance, string json)
        {
            string url     = instance.ApiUrl + endpoint;
            var    content = new StringContent(json, Encoding.UTF8, "application/json");

            return(ParseHelper.ParseResponse <UniqId>(instance.HttpClient.PutAsync(url, content).Result.Content.ReadAsStringAsync().Result));
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            // Makes the variable "api" a bridge that contacts Sellix's servers.
            Sellix api = new Sellix("api_key_here");

            // Prints the whole blacklist.
            Console.WriteLine(api.GetAllBlacklist());
        }
Ejemplo n.º 3
0
 public Cupon(Sellix instance)
 {
     this.instance = instance;
 }
Ejemplo n.º 4
0
 public Products(Sellix instance)
 {
     this.instance = instance;
 }
Ejemplo n.º 5
0
 public Feedback(Sellix instance)
 {
     this.instance = instance;
 }
Ejemplo n.º 6
0
 public Categories(Sellix instance)
 {
     this.instance = instance;
 }
Ejemplo n.º 7
0
 public Blacklist(Sellix instance)
 {
     this.instance = instance;
 }
Ejemplo n.º 8
0
        internal static async Task <string> Get(string endpoint, Sellix instance)
        {
            string url = instance.ApiUrl + endpoint;

            return(await(await instance.HttpClient.GetAsync(url)).Content.ReadAsStringAsync());
        }
Ejemplo n.º 9
0
        internal static Task <Response <object> > Delete(string endpoint, Sellix instance)
        {
            string url = instance.ApiUrl + endpoint;

            return(ParseHelper.ParseResponse <object>(instance.HttpClient.DeleteAsync(url).Result.Content.ReadAsStringAsync().Result));
        }
Ejemplo n.º 10
0
 public Orders(Sellix instance)
 {
     this.instance = instance;
 }