コード例 #1
0
        public AuthenticatedUserKeysRequest(PublicKey key)
            : base("user/keys")
        {
            this.RequestFormat = DataFormat.Json;

            this.AddBody(key);
        }
コード例 #2
0
        internal PublicKey UpdateAuthenticatedUserKey(PublicKey publicKey)
        {
            var response = this.Client.RestClient.Patch<PublicKey>(new AuthenticatedUserKeysRequest(publicKey));

            return response.Data;
        }
コード例 #3
0
        internal PublicKey AddAuthenticatedUserKey(PublicKey key)
        {
            var response = this.Client.RestClient.Post<PublicKey>(new AuthenticatedUserKeysRequest(key));

            return response.Data;
        }