fn create_signature(
http_method: &str,
base_url: &str,
oauth_param: &BTreeMap<String, String>,
query_param: &BTreeMap<String, String>,
body_param: &BTreeMap<String, String>,
consumer_secret: &str,
token_secret: &str,
) -> String
Expand description
HMAC-SHA1 署名を計算する。 この結果を oauth_signature フィールドに設定する必要がある。
- oauth_param: HTTP header 内の Authorization: OAuth 関連フィールド。
- query_param: URL 末尾の query。
- body_param: HTTP request body にあるパラメータ (POST data)。
詳細: https://developer.twitter.com/en/docs/authentication/oauth-1-0a/creating-a-signature
oauth_param, query_param, body_param 内でキーの重複があると panic する。