コード例 #1
0
ファイル: Client.cs プロジェクト: gobucket/gobucketcsharp
		public BasicJSONResponse DeleteImageAsset(string imageAssetID) {
			BasicJSONResponse result = new BasicJSONResponse();
			RestResponse response;

			string signature = this.Signer.CreateSignature("DELETE", "deleteimageasset", new List<string>() {
				imageAssetID
			});

			response = this.ExecuteDELETEWithAuthorization("/imageasset?imageAssetID=" + imageAssetID, signature);
			result = JsonConvert.DeserializeObject<BasicJSONResponse>(response.Content);
			return result;
		}
コード例 #2
0
ファイル: Client.cs プロジェクト: gobucket/gobucketcsharp
		public BasicJSONResponse MoveImageAssetUp(string imageAssetID) {
			StringBuilder query = new StringBuilder();
			BasicJSONResponse result = new BasicJSONResponse();
			RestResponse response;

			string signature = this.Signer.CreateSignature("GET", "moveimageassetup", new List<string>() {
				imageAssetID
			});

			query.Append("/imageasset/");
			query.Append(imageAssetID);
			query.Append("/moveup");

			response = this.ExecuteGETWithAuthorization(query.ToString(), signature);
			result = JsonConvert.DeserializeObject<BasicJSONResponse>(response.Content);
			return result;
		}