public static async Task <PrintNodeScale> GetAsync(long computerId, string deviceName, PrintNodeDelegatedClientContext clientContext = null)
        {
            var response = await ApiHelper.Get("/computer/" + computerId + "/scales/" + deviceName, clientContext);

            return(JsonConvert.DeserializeObject <PrintNodeScale>(response));
        }
예제 #2
0
        public static async Task <string> GetKeyAsync(string clientId)
        {
            var response = await ApiHelper.Get("/client/key/" + clientId + "?version=4.7.1&edition=printnode");

            return(JsonConvert.DeserializeObject <string>(response));
        }
        public static async Task <IEnumerable <PrintNodeScale> > ListForComputerAsync(long computerId, PrintNodeDelegatedClientContext clientContext = null)
        {
            var response = await ApiHelper.Get("/computer/" + computerId + "/scales", clientContext);

            return(JsonConvert.DeserializeObject <List <PrintNodeScale> >(response));
        }