public async Task<ActionResult> CallAPIDemo() { //Public, so - no big deal with authentication Pltkw3msApiUI2.ApiPayment.Pltkw3msApiPayment p = new Pltkw3msApiUI2.ApiPayment.Pltkw3msApiPayment(); var result = await p.Payment.PostByValueWithOperationResponseAsync("TEST"); var result1 = await p.Payment.GetWithOperationResponseAsync(); //Internal - debug will FAIL; some remarks for internal //Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping s = new Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping(new DelegatingHandler[] { new InternalCredentialHandler() }); //Public Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping s = new Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping(); var result2 = await s.Shipping.GetWithOperationResponseAsync(); return View(); }
public async Task <ActionResult> CallAPIDemo() { //Public, so - no big deal with authentication Pltkw3msApiUI2.ApiPayment.Pltkw3msApiPayment p = new Pltkw3msApiUI2.ApiPayment.Pltkw3msApiPayment(); var result = await p.Payment.PostByValueWithOperationResponseAsync("TEST"); var result1 = await p.Payment.GetWithOperationResponseAsync(); //Internal - debug will FAIL; some remarks for internal //Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping s = new Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping(new DelegatingHandler[] { new InternalCredentialHandler() }); //Public Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping s = new Pltkw3msApiUI2.ApiShipping.Pltkw3msApiShipping(); var result2 = await s.Shipping.GetWithOperationResponseAsync(); return(View()); }