REST Call with Flutter - Http methods

  Рет қаралды 75,853

CodeX

CodeX

Күн бұрын

Пікірлер: 68
@BeaconofHopeNetwork
@BeaconofHopeNetwork 2 жыл бұрын
Thanks. This is what i need for my project
@mageshkanna
@mageshkanna 2 жыл бұрын
Best explanation in KZbin ❤️ You made my day easier 💥
@giulianocapovilla2136
@giulianocapovilla2136 2 жыл бұрын
hi, thank u so much for the tutorials, im new in flutter and this is perfect for me, i was working with java and api rest, i wanted a chanched, so thank u
@CodeXdev
@CodeXdev 2 жыл бұрын
Glad I could help!
@asondubuisi5807
@asondubuisi5807 2 жыл бұрын
This is awesome. I'll be implenting this with the nodejs api I built
@kadidibwa968
@kadidibwa968 2 жыл бұрын
Never assume we would get bored
@justbe_joe9765
@justbe_joe9765 2 жыл бұрын
I honestly learned a lot of what i needed here thank you. Thank you Codex
@CodeXdev
@CodeXdev 2 жыл бұрын
Appreciate it! Subscribe n share 😍
@menushichandima3002
@menushichandima3002 7 ай бұрын
Best explanation with code.
@fetouhsadegh9368
@fetouhsadegh9368 2 жыл бұрын
hello to solve the probleme where the get methode work but post and put does nt read this : the problem is from the header ,in the put and post you need the header atribute in the request core,. you dont need the same as in the video since you probably don t have the autorisation nor the api_key as in the first declaration at 3:57 but you need the content type atribut in the header, so you header variable should look like the one at 13:31 if you follow the video you will see he have a problem too before he add it so basicly you need your header variable to be : var _headers = { 'Content-Type': 'application/json', }; again you can have api key autorisation and more stuff ,but so it just work the presence of content type atribut with the value aplication/json (like the code juste above) is enough. i hope this helped .
@adolfusadams4615
@adolfusadams4615 2 жыл бұрын
Can you do a tutorial on how to use GraphQL with Flutter?
@Vamp007
@Vamp007 2 жыл бұрын
Please make a tutorial on graphQL with flutter
@moabd7575
@moabd7575 2 жыл бұрын
finally i found a clear explanation for this! thanks can you explain authentication/authorization by jwt token?
@kunalmanshani379
@kunalmanshani379 Жыл бұрын
hello sir, can you please make a video on api handling architecture for large project.
@dev.ibrahim419
@dev.ibrahim419 2 жыл бұрын
Great Work Brother , Can you help me with an example how to use the data returned from post request in future builder.
@poetryiscodingdecoding7965
@poetryiscodingdecoding7965 Жыл бұрын
Please explain more on headers it is important aspect
@jaiminkoshti6595
@jaiminkoshti6595 Жыл бұрын
make tutorial on retrofit + getx + api (GET , POST , PUT , DELETE)
@devprasad8767
@devprasad8767 2 жыл бұрын
Can u make a video on riverpod
@Kasidit_Wansudon
@Kasidit_Wansudon Жыл бұрын
this is the best Video help full
@sale7680
@sale7680 Жыл бұрын
You send api parameters When u use For using route dynamically ?
@sa_lihrecords8687
@sa_lihrecords8687 2 жыл бұрын
thanku bro...from kerala
@sumanth862
@sumanth862 Жыл бұрын
what is that api_key you have passed in headers?
@jayisampelliwar5065
@jayisampelliwar5065 2 жыл бұрын
Hi Afzal sir, i used the same API and try to CURD operations but while making the get req. is working fine, but when i going to do PUSH, PUT and DELETE it's thowing an error. E/flutter (16462): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type '(dynamic) => User' is not a subtype of type '(String, dynamic) => MapEntry' of 'transform' I try to fix but i can't make it. so sir can you tell me what's going wrong here and used the same Model class as you.
@CodeXdev
@CodeXdev 2 жыл бұрын
With dynamic types, you need to be careful of what data you are parsing back. May be your return type is mismatching. You can share details on Discord channel and will try to help you out.
@jayisampelliwar5065
@jayisampelliwar5065 2 жыл бұрын
@@CodeXdev thank you sir
@byiringirooscar321
@byiringirooscar321 2 жыл бұрын
hello bro is your issues fixed ? even me I have this errors
@jayisampelliwar5065
@jayisampelliwar5065 2 жыл бұрын
@@byiringirooscar321 yes, my issue is fixed
@byiringirooscar321
@byiringirooscar321 2 жыл бұрын
@@jayisampelliwar5065 please can you help me I have the same of your errors
@akhil17able
@akhil17able 2 жыл бұрын
Thank you yaar.
@rowleyes5954
@rowleyes5954 2 жыл бұрын
thank you very much
@rolferikson
@rolferikson Жыл бұрын
I cannot print data like users[1].name. Is users not a list? What shall I do for reading data?
@flutterdev2930
@flutterdev2930 2 жыл бұрын
Can u make api integration using dio package
@sale7680
@sale7680 Жыл бұрын
Bravo man ❤
@poetryiscodingdecoding7965
@poetryiscodingdecoding7965 Жыл бұрын
Sir, I have made my own api and it uses bearer token authentication how should I use it ...i am unable to make a request for the same
@muhammaddede4615
@muhammaddede4615 Жыл бұрын
How to implement post multipart sir?
@lbarria11
@lbarria11 2 жыл бұрын
Hola, una consulta en el metodo get mi endpoint recibe un api_ke y ciertos parametros, como puedo agragarlo en la construccion del url como se hace con los headers y no agrgarselo al final de mi metodo despues del url. Saludos
@CodeXdev
@CodeXdev 2 жыл бұрын
No necesita pasar API_Key como parámetro. Por lo general, las api_keys se almacenan en variables globales y debe pasarlas directamente en el parámetro de encabezado de cualquier solicitud.
@shaikhurooj8441
@shaikhurooj8441 Жыл бұрын
Sir pls make tutorial on authenticatin mobile otp with rest api in flutter
@uniquevideos4740
@uniquevideos4740 2 жыл бұрын
*We see that body is exist and login with post request but i want login with get request not post, please tell me how i can*
@CodeXdev
@CodeXdev 2 жыл бұрын
GET request you can pass param like this 👇🏼 api/login?username='test'&password='encrypted_pass'&device='iOS' Its not recommended to pass confidential data in the GET request, its should only be used to fetch public data, something like this, api/getCities?countryId=123
@uniquevideos4740
@uniquevideos4740 2 жыл бұрын
i get response body but when i display response like id name then it dose not display it show error null its not a string or string is not a subtype of int can you tell me solution
@veeralavan2372
@veeralavan2372 2 жыл бұрын
Super Bro👍, How to cancel the (previous) api request
@CodeXdev
@CodeXdev 2 жыл бұрын
Its something dart doesn't provide out of the box. We can not cancel Future easily. There are some tweaks or custom implementation, which is topic for another tutorial.
@mohamedshifanmohamedkulans90
@mohamedshifanmohamedkulans90 2 жыл бұрын
Flutter Autocomplete with arrow keyboard navigation is not working please help me
@CodeXdev
@CodeXdev 2 жыл бұрын
Autocomplete supports keyboard out of the box, what issue you are facing exactly ?
@Gopinath-kk2fi
@Gopinath-kk2fi 2 жыл бұрын
Bro I'm getting CORS error it's showing xml http error, please help me to sort out this error.
@CodeXdev
@CodeXdev 2 жыл бұрын
Hello, CORS error comes because of the restriction on your server side. Are you using the same API in this video or other?
@Gopinath-kk2fi
@Gopinath-kk2fi 2 жыл бұрын
@@CodeXdev yeah bro I'm using third party api for my learning project even it's a open api, when we call in postman it will work properly and with help of flutter_Cors package we can get proper response in local but in production ( after deploy in firestore) it's showing xmlRequestError in network console cors error. Could you please help me.....
@Gopinath-kk2fi
@Gopinath-kk2fi 2 жыл бұрын
@@CodeXdev thank you for your response..
@AshishKumar-jo4fo
@AshishKumar-jo4fo 2 жыл бұрын
sir please make a video on how to call api USING GETX model view controller for like below response in which we can access status as well as data array { "isSuccess": true, "datacount": 77, "data": [ { "provinceID": 1, "provinceNameEN": "Bangkok", "geoID": 2 }, { "provinceID": 2, "provinceNameEN": "Samut Prakan", "geoID": 2 } ], "error": { "code": null, "messageToDeveloper": null, "messageToUser": null } }
@justbe_joe9765
@justbe_joe9765 2 жыл бұрын
I am a junior developer who started out with dart and i am having a little bit of issues with 'Logic' when using api's can you refer a tutorial or guide sir ? Thank you for your consideration
@CodeXdev
@CodeXdev 2 жыл бұрын
Hi, you can check this video kzbin.info/www/bejne/mWGciZythL9-qas
@AninArafath
@AninArafath 2 жыл бұрын
❤️❤️
@darshitkaklotar9003
@darshitkaklotar9003 2 жыл бұрын
Flutter more concept video uploaded
@zainhaidernaqvi5171
@zainhaidernaqvi5171 2 жыл бұрын
how to hide the installed application in flutter ( android )
@CodeXdev
@CodeXdev 2 жыл бұрын
I don't think it can be done, its OS capability...
@mrsp7693
@mrsp7693 2 жыл бұрын
Brother Rest API Steam Chat is working passable
@mrsp7693
@mrsp7693 2 жыл бұрын
Sorry Stream Bulider
@CodeXdev
@CodeXdev 2 жыл бұрын
Yes, it’s possible.. You will listen to stream for response
@mrsp7693
@mrsp7693 2 жыл бұрын
I am Stat management provide using brother
@mrsp7693
@mrsp7693 2 жыл бұрын
Using Stream Bulider in Chat my try full failure so please help
@abishekab21
@abishekab21 9 ай бұрын
not for beginners
@imobcode707
@imobcode707 2 жыл бұрын
Wait wait wait,,, What he just said, "A Kofi Channel"??? Like he has another channel, Is it???
@CodeXdev
@CodeXdev 2 жыл бұрын
No 😝 KoFi is payment service, for tip and support ❤️
@Harry-ju9nv
@Harry-ju9nv 2 жыл бұрын
sorry sir , i messed up your api
Mobile Development: From Concept to Business Success
6:53
OpenAI Assistants API - Course for Beginners
3:32:55
freeCodeCamp.org
Рет қаралды 642 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
HTTP in Angular - Learning Angular (Part 8)
12:42
Angular
Рет қаралды 52 М.
REST API with GetX | Flutter tutorial | Shopping app
26:43
The Best .NET REST API Client You Didn't Know About
12:55
Milan Jovanović
Рет қаралды 26 М.
#15 Spring Web Http methods GET and POST
20:55
Telusko
Рет қаралды 46 М.
How To Call a REST API In Java - Simple Tutorial
29:14
Coding with John
Рет қаралды 295 М.
Beginning Flutter - Intermediate - Using Common Widgets
4:44
JediPixels
Рет қаралды 80 М.
Google Map tutorial | Flutter
14:43
CodeX
Рет қаралды 58 М.
The standard library now has all you need for advanced routing in Go.
13:52
REST API with Flutter | Step by step tutorial
11:10
CodeX
Рет қаралды 170 М.