api - Alamofire Custom Header request swift 3? -
how can make custom header request in swift 3?
i have api key an value. api key x-access-token
, value secretapikey
.
how can print responses?
let headers = [ "x-access-token" : "secretapikey" ] alamofire.request("url", headers: headers)
Comments
Post a Comment