Created
March 8, 2021 15:38
-
-
Save markvanwijnen/2f89053bba86c013d6f3584324e5b889 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private func oAuthSignature(httpMethod: String, | |
| baseURLString: String, | |
| parameters: [URLQueryItem], | |
| consumerSecret: String, | |
| oAuthTokenSecret: String? = nil) -> String { | |
| let signatureBaseString = oAuthSignatureBaseString(httpMethod: httpMethod, | |
| baseURLString: baseURLString, | |
| parameters: parameters) | |
| let signingKey = oAuthSigningKey(consumerSecret: consumerSecret, | |
| oAuthTokenSecret: oAuthTokenSecret) | |
| return signatureBaseString.hmacSHA1Hash(key: signingKey) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment