예제 #1
0
        public static async Task <UserNotificationResponse> GetNotificationsForApiPartnerExample()
        {
            TelematicsV2             telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey);
            UserNotificationResponse response     = await telematicsV2.GetNotificationForApiPartner();

            return(response);
        }
        /// <summary>
        /// The GET TelematicsNodeV2/Notifications endpoint retrieves all enrolled notifications for the api partner.
        /// </summary>
        /// <returns></returns>
        public async Task <UserNotificationResponse> GetNotificationForApiPartner()
        {
            Dictionary <string, string> headers = ApiUtilities.BuildHeaders(UserKey, PublicKey, PrivateKey, $"telematicsnodev2/notifications");

            HttpResponseMessage response = await Api.Get($"telematicsnodev2/notifications", headers);

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

            return(result);
        }