public AuthenticatedUserKeysRequest(PublicKey key) : base("user/keys") { this.RequestFormat = DataFormat.Json; this.AddBody(key); }
internal PublicKey UpdateAuthenticatedUserKey(PublicKey publicKey) { var response = this.Client.RestClient.Patch<PublicKey>(new AuthenticatedUserKeysRequest(publicKey)); return response.Data; }
internal PublicKey AddAuthenticatedUserKey(PublicKey key) { var response = this.Client.RestClient.Post<PublicKey>(new AuthenticatedUserKeysRequest(key)); return response.Data; }