2012-09-06 29 views
1

我正在使用Chargify API進行支付。我在那裏創建了一些產品供訂閱。現在我想通過我的網站管理面板管理這些產品的價格和其他設置。但我在Chargify API中找不到任何功能或任何方式。如果有人知道通過API或通過代碼更新此方法,請告訴我。通過api或代碼進行Chargify產品價格更新

在此先感謝所有,

回答

0

我很抱歉把這個回來,但我有同樣的問題,並在我的測試(目前),我能夠更新產品PUT請求。

PUT要求必須發送到以下網址:

http://<site>.chargify.com/products/<product_id> 

和身體需要被更新僅領域發。

例子:

PUT https://mysite.chargify.com/products/7358179 HTTP/1.1 
User-Agent: Fiddler 
Authorization: <your authorization token> 
Accept: application/xml 
Content-Type: application/xml 
Host: mysite.chargify.com 
Content-Length: 106 

<?xml version="1.0" encoding="utf-8"?> 
<product> 
    <price_in_cents>2100</price_in_cents> 
</product> 

希望這有助於利用搜索引擎像我這樣做,發現這個頁面的用戶。