這是我得到的迴應。我只是想提取access_token。我怎樣才能做到這一點。請幫忙。如何從CURL響應中提取所需的數據?
HTTP/1.1 200 OK Via: 1.1 lvqma554(), 1.1 lvqma554()
Transfer-Encoding: chunked
Connection: keep-alive
X-CorrelationID: Id-e41cc17c551ba0be17900000 0; Id-9a8a03a2551ba0be02907400 0
Cache-Control: no-store
Date: Wed, 01 Apr 2015 07:39:42 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
X-AMEX-DPG-DEPRECATED: No
X-AMEX-DPG-MSG-ID: Id-e41cc17c551ba0be17900000
X-AMEX-DPG-STATUS: Success
Content-Type: application/json;charset=UTF-8
{
"access_token" : "7612126f-dea3-449b-b349-94be115e938a",
"token_type" : "mac",
"expires_in" : 7200,
"refresh_token" : "bc17169d-4fa0-407f-976f-32b2b4ef8812",
"scope" : "card_info",
"mac_key" : "537d3fc2-6a86-456a-b38b-60f77fe79a45",
"mac_algorithm" : "hmac-sha-1"
}
我認爲這個問題是有關提取了'訪問token'編程,你並不需要一個工具來手動提取「訪問令牌」 – 2015-04-07 12:29:17