public async Task <ShipmentJson> Execute(long shipmentId, string token) { try { var req = GetRequest(shipmentId, token); return(await HttpClientLib.Get <ShipmentJson, ErrorJson>(req)); } catch (Exception) { throw; } }
public async Task <AccountJson> Execute(string token) { try { var req = GetRequest(token); return(await HttpClientLib.Get <AccountJson, ErrorJson>(req)); } catch (Exception) { throw; } }
public async Task <OrderSearchJson> Execute() { try { var req = GetRequest(); var json = await HttpClientLib.Get <OrderSearchJson, ErrorJson>(req); return(json); } catch (Exception) { throw; } }
public async Task <OrderDetailJson> Execute(long orderId, long accountId, string token) { try { var req = GetRequest(orderId, accountId, token); var json = await HttpClientLib.Get <OrderDetailJson, ErrorJson> (req); return(json); } catch (Exception) { throw; } }