Trying to fetch JSON data from an external website for two ISBN numbers and the Curl from that site is shown below. When using the AF.request it works fine for one isbn but when trying the string in the curl request with isbn numbers separated by a common it returns no results. Instead of a comma I have also tried & and &20 and + and nothing seems to work. The website lets you plug in both ISBN numbers and will show you results and gives you the curl statement so I know the curl statement works. Any help is appreciated!
/* curl from ISBNdb
curl -X 'POST'
'https://api2.isbndb.com/books'
-H 'accept: application/json'
-H 'Authorization: 54357_a41e615fe369e09f286e8e20690bed4a'
-H 'Content-Type: application/json'
-d 'isbns=9781250178633,9781501110368'
*/
func fetchAPIDataISBN() {
let headers: HTTPHeaders = ["accept": "application/json","Authorization": "mykey","Content-Type": "application/json"]
//let parameters1 = ["isbns": "9781250178633,9781501110368"]
let parameters = ["isbns": "9781250178633"]
AF.request("https://api.pro.isbndb.com/books", method: .post, parameters: parameters, headers: headers)
1