Ejemplo n.º 1
0
        public static async Task <GetPlantingSummaryStatusResponse> GetTelematicsNodePlantingSummaryStatusExample(int nodeId, string trackingCode)
        {
            TelematicsV2 telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            GetPlantingSummaryStatusResponse response = await telematicsV2.GetTelematicsNodePlantingSummaryStatus(nodeId, trackingCode);

            return(response);
        }
        /// <summary>
        /// The GET TelematicsNodeV2/{telematicsNodeID}/PlantingSummary/{trackingCode}/Status endpoint will allow the user to check
        /// the status of their planting summary request using the tracking code they received as a result of their previous Planting Summary request.
        /// </summary>
        /// <param name="nodeId"></param>
        /// <param name="trackingCode"></param>
        /// <returns></returns>
        public async Task <GetPlantingSummaryStatusResponse> GetTelematicsNodePlantingSummaryStatus(int nodeId, string trackingCode)
        {
            Dictionary <string, string> headers = ApiUtilities.BuildHeaders(UserKey, PublicKey, PrivateKey, $"telematicsnodev2/{nodeId}/plantingsummary/{trackingCode}/status");

            HttpResponseMessage response = await Api.Get($"telematicsnodev2/{nodeId}/plantingsummary/{trackingCode}/status", headers);

            GetPlantingSummaryStatusResponse result = await Api.DeserializeContent <GetPlantingSummaryStatusResponse>(response);

            return(result);
        }
        public static async Task <GetPlantingSummaryStatusResponse> GetTelematicsNodePlantingSummaryStatusExample(int nodeId, string trackingCode)
        {
            GetPlantingSummaryStatusResponse response = await DataExchangeAPI.GetTelematicsNodePlantingSummaryStatus(nodeId, trackingCode);

            return(response);
        }