From 7a316a4a321ad3a7b1c618befbe0143ede0a4dc8 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 13 Sep 2019 11:10:22 +0530 Subject: [PATCH] Update README.md --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 38b595d..14de994 100755 --- a/README.md +++ b/README.md @@ -1 +1,32 @@ -# ucloud-cli \ No newline at end of file +# ucloud-cli + + +### Listing available ucloud products + +``` +(ucloud-cli) [test@ungleich ucloud-cli]$ UCLOUD_PAY_SERVER=http://127.0.0.1:5000 python ucloud.py product list +{ + "/v1/products/": { + "description": "YEARLY IPV6 subscription", + "name": "IPV6 VPN", + "price": 12000, + "recurring_duration": 31536000, + "recurring_duration_units": 0, + "type": "recurring" + } +} +``` + +### Adding new products +``` +(ucloud-cli) [test@ungleich ucloud-cli]$ UCLOUD_PAY_SERVER=http://127.0.0.1:5000 python ucloud.py product add \ +--name mravi \ +--realm test \ +--seed stest \ +--product-name "IPV6 VPN" \ +--product-description="YEARLY IPV6 subscription" \ +--product-type=recurring \ +--product-recurring-duration=31536000 \ +--product-price=12000 + +``` \ No newline at end of file