嗯,我曾嘗試在的Freshdesk API(http://freshdesk.com/api#create_ticket)中提到的每一件事,以創造新的機票,但沒有成功,創建門票使用的Freshdesk API,反應總是{「註銷」:「成功」}
以下是我在RESTClient實現正在做創造票:
Mehtod:POST 網址:https://milliontech.freshdesk.com/helpdesk/tickets.json
頁眉: 內容類型:應用程序/ JSON 授權:(基本授權使用APIKEY:X)
請求正文:
{
"helpdesk_ticket":{
"description":"I am not able to create this ticket... bla bla bla",
"subject":"Urgenta",
"email":"[email protected]",
"priority":1,
"status":2
},
"cc_emails":"[email protected],[email protected]"
}
這是響應:
{
"logout": "success"
}
我也有curl命令試圖建立新票,但在同樣的結果結束了。
感謝ArjunA提供的答案,但它沒有幫助,因爲我已經在我的問題中提到過我已經測試過curl命令來創建票證,當然是使用我自己的APIKEY和我自己的公司URL以及https作爲前綴 – 2015-04-08 04:22:34
我剛纔花了一個小時試圖解決這個相同的問題,然後我發現這個線程!要確認,清除緩存工作。我正在使用Advanced Rest Client Chrome附加組件。瀏覽器似乎將「Cookie」標頭添加到請求中,導致「註銷:成功」響應。從請求中刪除此標頭會導致成功創建標籤。 – 2015-09-06 16:08:26