Thứ Sáu, 31 tháng 8, 2012

Công thức tính oauth_signature

Công thức tính oauth_signature:
base64_encode(<METHOD><SPACE><REQUEST_URL><OAUTH_PARAMETERS>)

Ví dụ:
$signature='GET http://www.blogger.com/feeds/ oauth_consumer_key='.CLIENT_ID.'&oauth_nonce='.uniqid(rand()).'&oauth_signature_method=HMAC-SHA1&oauth_timestamp='.uniqid(rand());
echo base64_encode($signature);

0 nhận xét:

Đăng nhận xét

 
Copyright © hoangit