我想從下面的活躍機會,所有的聯繫人是我的SugarCRM API v4的請求SugarCRM的訪問被拒絕40號
{
"session":"btcskfetq7sqshio3uv568d8c1",
"module_name":"Contacts",
"query":"contacts.id IN (
SELECT opportunities_contacts.contact_id
FROM opportunities_contacts
JOIN opportunities
ON opportunities_contacts.opportunity_id = opportunities.id
WHERE opportunities.sales_stage
NOT IN ('Closed Won','Closed Lost'))",
"order_by":"",
"offset":0,
"select_fields":[
"first_name",
"last_name",
"title",
"phone_home",
"phone_work",
"status",
"email"
],
"link_name_to_fields_array":null,
"max_results":0,
"deleted":0,
"favorites":false
}
我查詢是工作在MySQL工作臺罰款,SugarCRM的數據庫,但API迴應是:
{"name":"Access Denied","number":40,"description":"You do not have access"}
你能幫忙嗎?
看起來像一個身份驗證問題。做任何簡單的請求都有效嗎?我認爲如果你還沒有這樣做,你需要用MD5來散列你的密碼。 – MartinTawse
我使用MD5進行密碼散列 – Jagan