     }
 
 
-    func oauthSignature(for method: Method, urlString: String, parameters: Dictionary<String, Any>, appKey: String, accessToken token: String?) -> String {
-        let tokenSecret = token?.urlEncodedString() ?? ""
+    func oauthSignature(for method: Method, urlString: String, parameters: Dictionary<String, Any>, appKey: String, accessTokenSecret tokenSecret: String?) -> String {
+        let tokenSecret = tokenSecret?.urlEncodedString() ?? ""
         let encodedConsumerSecret = appKey.urlEncodedString()
         let signingKey = "\(encodedConsumerSecret)&\(tokenSecret)"
         let parameterComponents = parameters.urlEncodedQueryString(using: .utf8).components(separatedBy: "&").sorted()

        return (encoding.encode(mutableURLRequest, parameters: nil), uploadData)
    }

    func authorizationHeader(for method: Method, urlString: String, appID: String, appKey: String, accessToken:String?, parameters: Dictionary<String, Any>, isMediaUpload: Bool) -> String {

        var authorizationParameters = Dictionary<String, Any>()
        authorizationParameters["oauth_version"] = "1.0"

                }
            }

            if let httpResponse = response as? HTTPURLResponse,
               let data = data,
               httpResponse.url!.absoluteString.contains("api.twitter.com"){

                let contentType = httpResponse.allHeaderFields["Content-Type"] as? String
                if contentType == nil || contentType!.contains("application/json") == false {

                    let responseText = String(data: data, encoding: .utf8)
                    // TWITTER SUCKS. API WILL RETURN <application/html>
                    // oauth_token=sample&oauth_token_secret=sample&oauth_callback_confirmed=true
                    json = responseText?.queryStringParameters

                    return
                }

