leeroya
9/4/2017 - 12:46 PM

Angular - PUT Method, #angular, #minutz

Angular - PUT Method, #angular, #minutz

updateThumbprint(serverUrl: string, apikey: string, machineId: string, thumbprint: string) {
    let myParams: URLSearchParams = new URLSearchParams();
    let data = { ServerUrl: serverUrl, ServerApiKey: apikey, MachineId: machineId, Thumbprint: thumbprint };
    let updateThumbprint$ = this._http.processRequest(`/machinethumbprint`, RequestMethod.Put, myParams, data)
      .map((discoveryData: any) => {
        let response: Array<any> = [];
        if (discoveryData) {

        }
        return response;
      })
      .catch((handleError: any) => {
        console.log(handleError);
        return (handleError);
      }
      );

    return updateThumbprint$;
  }