iOS Swift 5 Tutorial: Make HTTP POST Requests to an API

preview_player
Показать описание
Learn how to make a basic POST request to an API using json encoded data.

🛒 GAME DEVELOPMENT COURSE - JUST $20 🛒

✉️ COMMENTS ✉️
If you have questions about the video or Cocoa programming, please comment below.
Рекомендации по теме
Комментарии
Автор

Thank you very much! That tutorial saved me ❤️

jng
Автор

Cool video, Brain :) Keep up the great work

awais.fayyaz
Автор

JavaScript "fetch" now looks ideal of all possible way to make request in the universe! what a noisy language this swift

DjLeonSKennedy
Автор

Hello. Can you do a video about GET or POST request to an API that the server require Basic Auth in Swift 5. There is some info about a delegate implement authentication challenge but is not clear. Thank you in advance.

oisbelsimpsonverdecia
Автор

Hi Brian, Thanks for the tutorial. Question, how come your Message is a class and not a struct?

shingetzu
Автор

thanks for the video Brian.
i want to opload a picture to server how i can do ? please

nassimakkache
Автор

Thank you for this! Is there a link anywhere to the files? I try to copy all the code but have some typos that I can't seem to find....

kolinj
Автор

Shouldn't post return 201 created instead of 200?

ea
Автор

i ask a question ? . im write self.resourceURL = resourceURL . ı get error " assigning a property to itself ". what ı should do and your suggestion? please help brian.

devfurkan
Автор

The error comes out (2021-11-19 12: 31: 50.086033 + 0600 ParseJson [23603: 750804] [UICollectionViewRecursion] cv == 0x14a8ca000 Disabling recursion trigger logging, An error occuredresponseProblem) please help

ramazan
Автор

Hi, Brian! Thank you for videos! I have been writing program on mac os. I need to store application preferences. What i should use? Core data? Bundles? Or something else. Can u help me please? Thanks a lot!

dolphinmoto
Автор

How to add another parameter to the body?

EnglishTurkishExpert
Автор

Hi I want to post json array with json objects using swift but not understanding how to solve this problem can you please help me
Example
[
{"ABC":"ABC"}, {"ABC":"ABC"}
]

mehankjain
Автор

I start to learn developing IOS apps with Swift. I want to ask something. I always use libraries like 'Moya' or 'Alamofire' to request API. What do you think should i use libraries or is that enough ?

BarisSaglam
Автор

Is there by chance a WebSocket framework that uses Swift?

NikeTao
Автор

Great video Brian.  
I am looking to do something similar. I have a ride sharing app where the rider makes a payment through PayPal and the driver gets paid through PayPal as well. The payment made from the rider is working perfectly but somehow having an issue getting the payout to the driver to work in swift. The way it was done in Android was, at the touch of a button and the balance owing to the driver in a text view, a post request is sent through Firebase functions to PayPal ... I have sent to your email the code on how it is done through Android - I need help how to do this through Swift.
PLEASE HELP ~ Thanks in advance ~. lizgcanada

devhopes
Автор

İ use http:// host but i have a id and password, how to add in code this id and password

devfurkan
welcome to shbcf.ru