public static async Task <GetFileStatusResponse> GetFileStatusExample(string trackingCode) { TelematicsV2 telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey); GetFileStatusResponse response = await telematicsV2.GetFileStatus(trackingCode); return(response); }
/// <summary> /// The GET TelematicsNodeV2/{trackingCode}/FileStatus endpoint enables a user to obtain the current status of an FDA conversion using the provided trackingCode. /// The trackingCode was provided when the user downloaded a file from one of their API equipment connections, specifying to convert the file, or when a file was uploaded, when it required conversion first. /// </summary> /// <param name="trackingCode"></param> /// <returns></returns> public async Task <GetFileStatusResponse> GetFileStatus(string trackingCode) { Dictionary <string, string> headers = ApiUtilities.BuildHeaders(UserKey, PublicKey, PrivateKey, $"telematicsnodev2/{trackingCode}/filestatus"); HttpResponseMessage response = await Api.Get($"telematicsnodev2/{trackingCode}/filestatus", headers); GetFileStatusResponse result = await Api.DeserializeContent <GetFileStatusResponse>(response); return(result); }
public static async Task <GetFileStatusResponse> GetFileStatusExample(string trackingCode) { GetFileStatusResponse response = await DataExchangeAPI.GetFileStatus(trackingCode); return(response); }