title: Alamofire error after Swift 3.0 migration: “Extra argument in Call'” (request method)
body: <p>I am currently in the process of updating my codebase to Swift 3.0, and I am using Alamofire.<br>Thus, I had to update Alamofire to 4.0 (Alamofire git repo).<br>I have a request method to fetch data from the server, and before migration, it worked wonderfully.<br>After using Xcode's migration tool, I ended up with this error : <code>"Extra argument in Call"</code>.<br>I'm not quite sure why this method is no longer working.<br>Any help would be wonderful!</p>
  
  <pre><code>class func makeRequest(
      _ method: RequestMethod,
      authorization: String?,
      uri: String,
      params: JSONDictionary?,
      retry: Bool = true,
      completionHandler: @escaping RequestCompletionBlock)
  {
  
      let requestURL = baseURL + uri
      let authHeader: Dictionary&lt;String, String&gt;? = authorization != nil ? ["Authorization" : authorization!] : nil
  
      //requestURL is highlighted, says "Extra argument in call"
      sharedAlamofireManager.request(Method(rawValue: method.rawValue)!, requestURL, parameters: params, encoding: .JSON, headers: authHeader).responseJSON {
          response in
  
      }
  }
  </code></pre>
  
  <p><a href="https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md" rel="nofollow">Migration Guide for Alamofire4.0</a></p>
  
  <p>Edit:  JSONDictionary:</p>
  
  <pre><code>typealias JSONDictionary = Dictionary&lt;String, Any&gt;
  </code></pre>
  
  <p>sharedAlamoFireManager is also a SessionManager</p>