Questions tagged [alamofire]

Alamofire stands as a premier Swift HTTP networking library.

Having trouble making a POST request from Alamofire to ExpressJS

My backend server is NodeJs / ExpressJs running on Ubuntu 18.04.3 LTS. When I send AJAX GET or POST requests from the front-end (JavaScript) or through POSTMAN, everything works perfectly as expected. However, when I make a POST request using Alamofire in ...

What is the method for retrieving the value of __nssingleobjectarrayi in the code provided?

After parsing a JSON file, I was able to obtain a JSON Dictionary. { data = ( { bio = "<null>"; bookmarked = 35; id = 22; "last_seen" = { date = "2017-03-30 14:00:01"; ...

changing the Almofire JSON answer into a variable

I have posted my question multiple times on stackoverflow, but none of the solutions provided worked for me. So I am summarizing my question here and trying to explain it more clearly. My app is sending a picture to a Python backend for image recognition ...

Connecting Alamofire calls using Swift and PromiseKit

My current setup involves utilizing two API endpoints, with the second dependent on the result of the first. The initial endpoint is /api/v1/regions/, which provides a JSON list of regions structured like this: { region_id: 1, mayor_id: 9 }, { regi ...

Parsing JSON Response in iOS using Swift and Alamofire

After receiving the JSON response from my server, this is what I found: { "case_details": { "status": "PENDING", "caseNumber": "ARBIT.CASE(C)/1/2017", "party": "COMBITHERM APPARATE-UND ANLAGENBAU GMBH .Vs. COXWELL DOMES ENGINEERS PVT. LTD. & ...

Submitting JSON data using Alamofire in Swift

How do I send an array of JSON objects using Alamofire in Swift? The data I need to post is as follows: dataArray = [{ "time": 1, "score": 20, "status": true, "answer": 456 }, { "time": 0, "score": ...

Using Alamofire and SwiftyJSON subscripts in Swift 3

For some reason, my code isn't working as expected and the result is always nil. I have incorporated Alamofire and SwiftyJSON into my code. Here is a snippet: let urlString = "myurl" let params: Parameters = [ "accessProvider": AccessProvider, ...