Part - 11 | Building List with Complex Very JSON Data || Flutter Get API Call with null safety
HTML-код
- Опубликовано: 18 окт 2024
- In this video i will teach you how we can parse complex JSON data to model and then build the list.
► API Link:➜ webhook.site/d...
► Source code ➜ github.com/axi...
► Jsonviewer: ➜ jsonviewer.stac...
Join Facebook Group: / 983554978866765
_____________/Connect On Social Media\____________
► linkedin:➜ / axiftaj
► Instagram:➜ / axif_taj
► Facebook:➜ / aaxiftaj
► Twitter:➜ / axiftaj
► GitHub:➜ github.com/axi...
► Hire me on Fiver:➜ www.fiverr.com...
=========================================
Blog App Playlist: • Flutter Blog App with ...
Flutter Tutorials Playlist: • Creating Flutter proje...
How to capture image from camera in flutter:
Link : • How to capture Image f...
My Card App Flutter :
User Circular Avatar Part 1 : • My Card App || Flutter...
Use fonts in flutter Part 2 : • My Card App || Flutter...
Final Part 3 : • My Card App || Flutter...
Hire me on Fiverr : www.fiverr.com...
Covid-19 Tracker App using Rest API's : • Create Coronavirus (CO...
Firebase Blog App Android Java: • Firebase Blog App - Ho...
C++ Tutorials : • C++ Programming Tutori... .
rest apis,flutter get api call with null safety, building list with JSON data, future builder, flutter rest api tutorials crash course,
For business queries : axiftaj@gmail.com
Thank you for watching my channel do give feedback about this video.
#flutter #fluttertutorial #form #components #flutter #asiftajtech
Please Use this response and create your own api like i do to follow the tutorial along side with me. Create your own api and and use it.
json Response:
{
"success" : true,
"message" : "All data" ,
"data" : [
{
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"on_sale" : true,
"sale_percent" : 20,
"sold" : 20,
"slider_new" : false,
"slider_recent" : false,
"slider_sold" : false,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"title" :"TMTS121-50199" ,
"categories" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"type" : "Women" ,
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"name" : "clothes" ,
"image" : "https: //images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
"subcat" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"type" : "Women" ,
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"name" :"Shirts"
},
"shop" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"is_active" : false,
"created_At" : "2023-01-05T07: 56: 19.219Z" ,
"name" :"Shirts" ,
"description" : "This is enderobe brand" ,
"shopemail" : "adenreobe@gmail.com" ,
"shopaddress" : "Islamabad F8" ,
"shopcity" : "Islamabad" ,
"userid" : "23asdfasfdsfd" ,
"image" : "images.pexels.com/photos/5531004/pexels-photo-5531004.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
"price" : "2500" ,
"sale_title" : "Winter Sale" ,
"sale_price" : "2300" ,
"description" : "22% off all the sales " ,
"color" : "#FF6347,#CD5C5C" ,
"size" : "S,M,L,XL,XXL" ,
"in_wishlist" : true,
"images" : [
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/19090/pexels-photo.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
},
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/336372/pexels-photo-336372.jpeg?auto=compress&cs=tinysrgb&w=1200"
}
]
},
{
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"on_sale" : true,
"sale_percent" : 20,
"sold" : 20,
"slider_new" : false,
"slider_recent" : false,
"slider_sold" : false,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"title" :"TMTS121-50199" ,
"categories" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"type" : "Women" ,
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"name" : "clothes" ,
"image" : "https: //images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
"subcat" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"type" : "Women" ,
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"name" :"Shirts"
},
"shop" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"is_active" : false,
"created_At" : "2023-01-05T07: 56: 19.219Z" ,
"name" :"Shirts" ,
"description" : "This is enderobe brand" ,
"shopemail" : "adenreobe@gmail.com" ,
"shopaddress" : "Islamabad F8" ,
"shopcity" : "Islamabad" ,
"userid" : "23asdfasfdsfd" ,
"image" : "images.pexels.com/photos/5531004/pexels-photo-5531004.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
"price" : "2500" ,
"sale_title" : "Winter Sale" ,
"sale_price" : "2300" ,
"description" : "22% off all the sales " ,
"color" : "#FF6347,#CD5C5C" ,
"size" : "S,M,L,XL,XXL" ,
"in_wishlist" : true,
"images" : [
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/19090/pexels-photo.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
},
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/336372/pexels-photo-336372.jpeg?auto=compress&cs=tinysrgb&w=1200"
}
]
},
{
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"on_sale" : true,
"sale_percent" : 20,
"sold" : 20,
"slider_new" : false,
"slider_recent" : false,
"slider_sold" : false,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"title" :"TMTS121-50199" ,
"categories" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"type" : "Women" ,
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"name" : "clothes" ,
"image" : "https: //images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
"subcat" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"type" : "Women" ,
"sale_percent" : 20,
"date" : "2023-01-05T07: 56: 19.219Z" ,
"name" :"Shirts"
},
"shop" : {
"_id" : "asdf231asdfadsfsad2438rjsd" ,
"is_active" : false,
"created_At" : "2023-01-05T07: 56: 19.219Z" ,
"name" :"Shirts" ,
"description" : "This is enderobe brand" ,
"shopemail" : "adenreobe@gmail.com" ,
"shopaddress" : "Islamabad F8" ,
"shopcity" : "Islamabad" ,
"userid" : "23asdfasfdsfd" ,
"image" : "images.pexels.com/photos/5531004/pexels-photo-5531004.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
"price" : "2500" ,
"sale_title" : "Winter Sale" ,
"sale_price" : "2300" ,
"description" : "22% off all the sales " ,
"color" : "#FF6347,#CD5C5C" ,
"size" : "S,M,L,XL,XXL" ,
"in_wishlist" : true,
"images" : [
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/19090/pexels-photo.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"
},
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/4495705/pexels-photo-4495705.jpeg?auto=compress&cs=tinysrgb&w=1200"
},
{
"id" : "2342asdfasdf34",
"url" : "images.pexels.com/photos/336372/pexels-photo-336372.jpeg?auto=compress&cs=tinysrgb&w=1200"
}
]
}
]
}
thanks for this
Thanks sir
I have generated the fake API using this response but API is not getting hit or showing any data
Thank you bro now it's working.
My past 5 days were full of productivity, just because of your getx playlist and api playlist. You are worth it man
Share with your friends
You saved my job brother.. very helpful playlist for me. i was totally null about api. but after completing your series - now its just like drinking water. Thank you. May Allah Bless you
Glad i helped, do share with your friends and subscribe.
This is a "one of a kind" tutorial series. Your teaching style matches with me about 90 percent. CHEERS!! to you Asif . and my sincerest and Utmost gratitude to you.🤩
Thank you so much sir, do subscribe and share with your friends so maximum student can take benefit from my knowledge.
@@thetechbrotherss done already! Eager to learn more from you
Your tutorial make me able to pass my first Interview in peshawar IT part .thank You Mr Asif Taj 🙏🙏🙏🙏🙏
Best of luck, do subscribe and share with your friends
Alhamdulillah, I was able to code the logic of this video on my own, thanks to your excellent teaching style. Your guidance helped me to grasp the concepts and apply them effectively.
Jazak-ALLAH
Glad to hear this, share with your friends
can you please share the code and model you used i have tried many times but it is not working
Thank you so very much.. I'm really thankful to you for the efforts that you put into teaching us, you're the best of all teachers. May Allah reward you in this world and in hereafter ❤️
Thank you share with your friends
JazakAllah ... great video tutorial that how to handle complex json data and building list with very very and very easy way .... for newer in flutter must following his video ....
You are most welcome, do share with your friend so many students can take benefits from this video.
Thanks for this tutorial Is se Mari boht help hui he mene flutter to seekha but api Samaj nhi arahi thi aj muje sab kuch Samaj agaya thanks alot sir g
Great it helped, do watch full playlist it will clear all your concepts. Do share and subscribe.
@@thetechbrotherss mene sab videos ko start se dekha he islye to Samaj ai he warna upar se hi jati
@@thetechbrotherss but thanks
hhahaha this used to happens with me in the start of my journey.
@@thetechbrotherss So that doesn't mean it's just me
That's very high level knowledge you are providing
Glad you liked it.
Thank You Sir. You are fantastic. may Allah bliss you with what you have wished for.❤
Share with your friends
very helpful content boss, ma to apk fan hogyaa jis way ma ap seeekha tha ab tk mana youtube pr asa teacher nahi dkha flutter ka. and api link is not working please check and update
Thanks do share with your friends
@@thetechbrotherss sure , please update api link not working
Thanks for the tutorial sir aur kaun sa app next banane ko soach rahe hai sir .... Sir koi state management bhi us application ko integrate kar ke sikhaiye. App ka marji sir koi bhi.
Hm slowly slowly sub mil kr sekhain gy. After this playlist we will learn provider state management.
Very helpful Playlist for beginners ✌️☺️
Glad you think so!
Best video found in youtube.thx
Share with you friends and subscireb.
Hello sir in your video when you build a future builder widget and use if else condition for snapshot and then return listview builder and after that you will return column and etc . the point is you dont return value to future builder and you face no error but in my project this null safty error occurs and when i return value in end then they dont show me data. what is the solution? BTW every thing clear.
you can use connection state for that
iS CODE ka product model bana ha ya POSTMAN ma add krna ha?
yeh sari JPEG ha lakin jab apny PRODUCT MODEL banaya ha toh woh webp ha.. CODING KI LAST LINES and LAST WORDS
Read first comment and follow the tutorial
for visual studio code? kon si extension aur kese model class banti json se?
Wahan per property define ker ke then model banti direct json paste krne se model nhi banta
for vs code used this javiercbk.github.io/json_to_dart/
Thanks alot of confusion clear
You are most welcome, keep sharing keep watching.
What a beautiful tutorial i wish it was done in English, please next time to get a wider reach please use English, perhaps you have English version please point me to it. Thank you
I’ll try to create content in English
16:32
Asif bhai aap ny taqreeban 2 videos me 2 different methods use kiye hai Future builder ky 1 baar list mein data store krwaya or 1 baar directly lakin difference bilqul discuss hi ni kiya
thanks
@@thetechbrotherss Asif bhai😅 kuch btayein bhi to
Hi, thanks for your video. But my doubt is the API URL is not working for me. Can u please help me out with this.
Always read fists comments and descriptions
I have created one following his api, if you need you can use it.
sir one time you check it not work i do everything like check api response it come, but image[id, url] there promblem , sir please one time check that sir , i am waiting your reply sir
replace images with your own images url, also check first comment
Very informative playlist. keep it up man (Y)
Thank you
thanks bro your tutorial really help a loT please upload more content 😇
Thank you for appreciating. I will, do subscribe and share with your friends.
Hello,
Why am I getting such an error in the application screen? (type list dynamic is not a subtype of type map string dynamic), Thank you.
Try to build model again else change var data to var data Map data = json.decode(response.body.toString()
)
because of null safety,use type casting
sir, this video is very helpful.
sir muje ek doubt hai me ye method use kar k api to get kar liya lekin ab muje isme pagination karna hai to without array me data ko kese pagination me add karu?? for ex. page 1 me 3 data hai or list khtam hota hai to me api call karwata hun page no 2 ki so again 3 data aye..but me page 1 k 3 data ko page 2 k 3 data se merge kana chata hun to without array how its possible?
Packages available ha
@@thetechbrotherss yes package hai magar usme bhi array me add karna pad rha hai
@@thetechbrotherss koi video hai sir pagination ki? Duse video available hai magar wo sab alag alag method hai or har method me array ka use kiya hai magar is video k mutabiq array use nahi kiya hai
Best Playlist Ever
thank you
Nice tutorial bro, thanks 🙏
Welcome 👍 Please do share with your friends.
i thing the model you used in video and you provided are different . i am having issue while fetching images as they are under the product array how to fetch those please help
Images i used in model are taken from shutter stock you can replace them with your while create the model, just replace image url and create the api again.
Assalamualaikum Asif Bhai,
Mene Just Try Kiya Ye Video Wala Same Concept but Jo API Link Aapne Mention Kiye Ho Wo Expired bata rha he Google pr,,, index ka data try kiya but nahi show hua jese aapne bataye same wese.
Plz Answer for help me.
Read first comment
Sir the problem here we have json that return 1 data so when I am trying like to find images it is impossible because they are under products please I am lost
It’s not impossible, i have done it as you can see in the video you must be doing something wrong
I have Unsplash api its same, i am trying to convert json to dart online its having so much of issue, also i use VS code there is no such plugin .
is there any other way the api is so long
you can use online website to make model and read first comment and then follow the video and do it the way i did it
Thank you sir. Maine apna fake API bana liya.
mazy kro
But sir apnay jo api hamay provide ki hy us me image address invalid hy wo image nhi website ka link hy Baki sir Explaination sy concept clear ho gaey hain
Thank you
check first comment and follow the process
Github code bhi share kardia karo bro samjhna mein asaani hoti hy btw great tutorial keep it up ❤❤
Ok i will share the source code
Asif bhai apki JSON Schema jo video me hai aur jo comment me hai wo dono alag hai.
wo comment wala use kr lain same ha
@@thetechbrotherss Comment wala hi use kar raha hu bhaijaan. Mobile me Loading hi dikha raha hai. Images ke sath baki content show nahi ho raha.. Json Schema hi alag hai. Ab tak ka pura course badhiya hai. lekin gaadi yahi pe atak gayi hai..
@@gurasissingh178 us ma aik object nhi bas
Great Sir...
Thank you
@@thetechbrotherss I have got error: null check operator used in null value
Thank you so much Sir 💖
Thank you do share with your friends.
I have got error: null check operator used in null vallue. is your everything correct
apka vedio bohot achi hai
THANKS
Sir, Array nd nestedcArray k liye konse approach ko follow karengy?
This video is your answer
@@thetechbrotherss ok thankyou i will try this
Facing error while fetching image.
image: NetworkImage(Snapshot!.data!.data[index]. image![position].url),
Error the getter url isn't defined for the class string
add your own images check first comment
Same. Did you solve the error?
@@hashirahmadkhan3448 I have the api
@@hashirahmadkhan3448 same error not solved
@@thEoim plz give me
very very thank you sir
Do subscribe and share with your friends
Sir this json file not same which you showing in video. lot of issue coming when writing code. and I can understand the code properly. would you please provide me the json file which is you showing in the screen please
Please check the first comment
Bhai , your this API link is not working, so, what is alternative way to get this link and practice , i am trying to make fake APIS but I'm failed to make that,,,
please brother give me some idea about that
Always read first comment and descriptions. Then follow the process
@@thetechbrotherss thank you brother, I find out my problem and now I am able to make this fake API link ,
Specially you are a great teacher , from you I'm learning lot of things,❤❤ Regularly I watch your all informative video
Please make any E-commerce base application, I hope its will be really helpful for us
@@hussainuk3674 apko kaha pe issue araha tha nd kese solve hua can you please describe briefly? q k mere pas bhi Api fetch nahi ho rahi
great video keep it up
Thanks!
@@thetechbrotherss more videos on APIs please ❤️
ya jo @Tech Brothers nay first link diya ha es say json to dart plugin say jo ProductsModel file ban rahi ha wo theak nahi ban rahi 4 files ban jati han
Read first comment and follow the process
do you still use this method to fetch data from api? i.e. using future builder and snapshot etc?
Nop, this is for basic understanding of concepts. i use state management. Check my mvvm courses for bloc, getx and provider
nice tutorials. please make videos for getx api
I will try my best
where is api link .... ?? ye on nai ho rahii jo description mein hai...(error 404)
check first comment bro follow the video
Sir! when I click on api link of this video then show me the 404 Error|Not Found page, how to get it
Bro check first comment and the follow the process.
thanks for json response data
glad you like it, do subscribe and share with your friends
Hi,
Can you please explain how we can display the same images in the example as a dropdown? How do we access the index in that case
Just pass array to dropdown rest of the process is same
@@thetechbrotherss thankyou..got it!
yeh API ka link kidhar hei ya JSONPLACE HOLDER mein kidhar ja ker convert ker sakty ?
read first comment and follow the process
Razib sir aapse puchna tha ki rest API part number 11 ki video hai sar ji sar aapane provide kiya tha URL description mein Nahin hai Uske bare mein thoda sa batana hai
I'm getting error in generated model by plugin itself , 'Undefined name Dynamic'
You can used online website to create videos.
@@thetechbrotherss Thank you for reply , No my doubt is , I have created the posts model using JSON to DART plugin in Android studio. I'm getting error in posts_model.dart file as 'Undefined name Dynamic' . What should I do?
I think this may be the problem with updated version of the plugin. Can you please check that and help me what to do
sir if i get access data to other example_six.dart how can I do?
dont forget to leave a star.
github.com/axiftaj/Flutter-Rest-Api-Tutorials-With-Example
sir amazing but I have a task where I logged in with user model data then I have made a profile page of only that user who is logged in so what is the code for it. tried your trick but it gives all the users model data I only need logged in user data.
create your separate model and save values into shared preference. Then display them.
@@thetechbrotherss thanks sir for your reply please make video on this as I don't know much about the shared preferences.
sir webHook ke bagher koi alternative?
usko bhi hum seekhain gy
will you please make video on complex Post Api where json is like:
{
"DemoService1Result": [
{
"Response": "Logged in successfully...",
"STATUS": "Success"
}
]
}
This is the complex api i have teach in the tutorials, if you got understanding of this then everything will be on your finger tips.
Yes ,I see all the videos and I got my mistake and now I solved the issue.thank you😅
bhai mujy yeh Json to Dart puglin bata Vscode ke lein waha bohot masla horaha hy?
bro vs code to muje ni pata ap yeah website use kro model bnany k liye
javiercbk.github.io/json_to_dart/
subscribe zaroor kr dain r share bhi kr dain
@@thetechbrotherss jazakAAllah
I created a fake api but my code is not fetching data from it, there's no error in the code i even copied your whole code from github and changed the link and everything but it's still not working
Please debug it and check for status code response
Bro if you got any solution then please tell me too . I'm also facing same problem
@@dailydoseofact nope couldn't find any solution.
18:30 -> Bro sometimes you show data in else statement and Loading text in if. This time you show data in if(snapshot.hasData) part and Loading text in else part its confusing
It depends upon the api response.
@@thetechbrotherss Explain this in next Comment Thanks in advance
what is the difference in both return
bhai ap k code k mutabik mai sirf product list ko access kr skta ho or product mai images Arrey ko target nhi krr paraha
plzz help mee
Bro follow the process and check the api response in postman then give it shot, lot of students did it
@@thetechbrotherss Thanks for reply brother bhai maslay bohot a rahay hai agr ap video mai jo Api dekae hai agr vo share kr dy to bhai tention tora kam ho jay ga
plzz bhai dua lagi ge meri
Can this api data can be shown as notification in background????
Yes about upto some kb data, you have to play with it
sir vidoes 11 mai api ka link nahy open horaha
Not Found ata hai
Please read first comment and watch video from start.
bhut complicated h ye api ko understand krna ,but way of teaching is better
Ap is playlist ko start st follow kro apko sub kuch easy lagy ga
@@thetechbrotherss i follow this playlist from starting but jese jese aage bad rha hu playlist m vese vese complicated ho rha h mere liye
Hey brother, the api link you have provided aint working.
Thank you
Bro please read first comment and then watch video along side me
Sir i Did't Understand Model Class Generacted From Plugin Please Make Video How To Create Model Class Without Plugins ! For This Kinds Of Api's
use online website search json to dart
it does not decode image but absolutely briliant explaning brother love and respect
Add your own images, i have added card code images in response
ALLLAH Bless you
Do subscribe and share with your friends
Asif Taj Sir I have an Issue in APi Last main App ko run karta hon tu woh sirf loading kr raha hai baqiii data nahi araha hai....
Read the first comment and follow the process
@@thetechbrotherss Asif taj bhai ossi ko heee follow kia hai phir b nahi ho raha hai phir apka code use kia
to prh r practice kro
When I am fetching Images through Api. Then I gives me exception of *Invalid Image data*
This is may due to images are not available as i have taken those images from google you can change the link in response dynamically and the create api. You can pass any link of the image from google and paste in response in images array. This will solved the issue. If this didn't still don't worry as you learned the process.
hello sir sir ap na gu api ka link dia hai ma aus ku open kar raha hu but error a raha hai 404 not found ais ka kia solution hai sir?
check first comment and follow the process
The code is all fine & not showing single error but when i tried to simply print the index value the api isn't hitting. I dunno why I'm facing this problem
hit api in postman, also check first comment
@@thetechbrotherss it's hitting in postman and in vs code it isn't showing any error but the problem is that the api isn't hitting in vs code while writing code & doesn't showing any data from the model on screen . It's just returning Loading text .
sir, there is an issue in future function calling in main file. main file not accessable that function
Make sure to use async
Sir Apne if or else ke condition same lgae hain matlab agar status code. 200 ni hunga tb be "data"pass hu gae ?ye change hunga na?
Yar yeah developer par depened krta ha wo kaise backend banta ha ap ny phr us k status code par condition lagani hoti ha.
this Api in 404 error
Check first comment
It run in postman but json to dart plugin say ProductsModel ki file bannay k bajay 4 files automatically ban jati han even I tried every thing from scratch
Read first comment and follow the process
SIR
AP APNA FIRST COMMENT DEKHY APNY JO CODE SHARE KIYA HA WOH JPEG EXTENSION K SATH HA OR JO VIDEO MA USE KIYA HA WOH WEBP KI EXTENSION HA ... JAB APKI VIDEO FOLLOW KR RHY HAIN TOH ERROR ARHY HAIN...
PLLZZ IS KO RENEW KR DYN.. IS VIDEO PY STUCK HOVY MUJY 6DAYS HO GAE HAIN... ABHII AGY B ITNI SARI VIDEOS HAIN... PLLZZZZZ
bro this is working please read it carefully and follow the process as told in video.
API Link is giving 404 error and cannot able to find first comment, Btw, you are doing an fantastic job.
Please create your api from this website as i am using free version and it only support 500 free request. I have told you the procedure of how you can create fake APIS.
Website : webhook.site
JSON Response:
{
"success": true,
"message": "All Shops Data",
"data": [
{
"_id": "6196377900622d794418644b",
"is_active": false,
"created_at": "2021-11-18T09:03:04.356Z",
"name": "ONE",
"description": "Clothing store in Islamabad",
"shopemail": "ONE@gmail.com",
"shopaddress": "islamabad",
"shopcity": "Islamabad",
"userid": "6196377800622d7944186447",
"image": "www.shutterstock.com/image-photo/head-shot-portrait-close-smiling-confident-1714666150",
"__v": 0,
"products": [
{
"_id": "61963b4300622d794418687e",
"on_sale": true,
"sale_percent": 0,
"sold": 10,
"slider_new": false,
"slider_recent": false,
"slider_sold": false,
"date": "2021-11-18T09:03:04.358Z",
"title": "Denim Shirt Grey",
"categories": "612c8b2b674ad2107eb2d244",
"subcate": "616e81dba17386218e27a2b5",
"shop": "6196377900622d794418644b",
"price": "3,490 ",
"sale_title": "3,490 ",
"sale_price": "2,443",
"description": "men shirt",
"colors": "Red",
"size": "S,M,X,XL",
"images": [
{
"_id": "61963b4300622d794418687f",
"filename": "images[0]-1637235522052-730096647.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "61963c2e00622d7944187316",
"filename": "images[0]-1637235757437-927339951.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "61963c2e00622d7944187317",
"filename": "images[1]-1637235758276-122593199.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
}
],
"__v": 1,
"in_wishlist": false
},
{
"_id": "6197493700622d794418cdec",
"on_sale": true,
"sale_percent": 10,
"sold": 8,
"slider_new": false,
"slider_recent": false,
"slider_sold": false,
"date": "2021-11-18T09:03:04.358Z",
"title": "Printed Hoodie Grey",
"categories": "616e8081a17386218e27a206",
"subcate": "616e84b2a17386218e27a420",
"shop": "6196377900622d794418644b",
"price": "3,590 ",
"sale_title": "3,590 ",
"sale_price": "2,513",
"description": "ssss",
"colors": "#CD5C5C",
"size": "S,M,L,XL,XXL",
"images": [
{
"_id": "6197493700622d794418cded",
"filename": "images[0]-1637304627221-448731879.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "6197493700622d794418cdee",
"filename": "images[1]-1637304628418-102234457.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "6197493700622d794418cdef",
"filename": "images[2]-1637304629564-380376274.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
}
],
"__v": 0,
"in_wishlist": false
}
]
}]}
O
@@thetechbrotherss sir the site give this error 429 Request limit exceeded. Sign up to unlock more requests. is there any other web site to create our free or fake Apis? please sir help me it works first but after 4 to 5 hours it give this error
Thanks Dear
thank you
Brilliant sir
thank you
thanks a lot. but image is not showing. This kind of error is showing (Invalid image data).
Add your own images and make the api again
Getting from here
itemCount: snapshot.data.data.lenght
Getting error while I type data second time?
add null check like i did or you can check the source code.
Thanks a lot!
share with your friends
Bro my if condition is not working only else condition is working that text loading is print
Read first comment and follow tutorial
Brother, complex JSON file don't get.
read first comment and follow the process
Sir the API link in not working.? what should i do now???🤔🤔🤔
agr bna lia ha to comment bhi upate kr do
Thank you)
Welcome!
the link you provided doesn't not contain any data. shows 404
Please check the first comment and description then follow the rest of process.
images sirf 3 objects mee hee thi kya what about rest 7 objects??
Yeah 1 generic example the api ko fully understand krny k liye, ab image 100k objects ma bhi process same rahy ga fetch krny k liye.
sir share the json data the Link dont give response errro 404 Not found
Please see first comment i have provided you the response so pleas make your own fake API. Follow tutorial like i did.
please use the English language when explaining for a wide range of audiences. Thanks
I am not good at english.
A.o.A Sir Rest Api video number 11 ka link ni mil raha
read first comment and follow the process
Hello Sir I can't access the data list in item count what to do?
Bhai check api in postman and also read first comment
Sir ap NY Jo comment main api ka code kia hai is ka structure or ap ka structure same nai banta kia issues hain😑😑😑😑😑😑
Same banta ha ab sahi sy follow kro
@@thetechbrotherss
Sir Mera else part chata hai loading wala if part nai chalta Jahan ap first time app run karty or integer print karty... If part nai chalta jab k same code likha huwa😑
@@zoshypermar same issue
Sir XMLHttpRequest error show horha hy code theek hy bilkul maine kafi baar recheck karlia.
checki api response in postman, also read first comment and follow the video
@@thetechbrotherss Sir response araha hy aur 1 comment se code copy karke hi fake api create ki hy.
sir thanks ,,but the api link is not working it show this---> Too many requests, please create a new URL/token
Please create your own fake api, see first comment.
Please check first comment. JSON Response
{
"success": true,
"message": "All Shops Data",
"data": [
{
"_id": "6196377900622d794418644b",
"is_active": false,
"created_at": "2021-11-18T09:03:04.356Z",
"name": "ONE",
"description": "Clothing store in Islamabad",
"shopemail": "ONE@gmail.com",
"shopaddress": "islamabad",
"shopcity": "Islamabad",
"userid": "6196377800622d7944186447",
"image": "www.shutterstock.com/image-photo/head-shot-portrait-close-smiling-confident-1714666150",
"__v": 0,
"products": [
{
"_id": "61963b4300622d794418687e",
"on_sale": true,
"sale_percent": 0,
"sold": 10,
"slider_new": false,
"slider_recent": false,
"slider_sold": false,
"date": "2021-11-18T09:03:04.358Z",
"title": "Denim Shirt Grey",
"categories": "612c8b2b674ad2107eb2d244",
"subcate": "616e81dba17386218e27a2b5",
"shop": "6196377900622d794418644b",
"price": "3,490 ",
"sale_title": "3,490 ",
"sale_price": "2,443",
"description": "men shirt",
"colors": "Red",
"size": "S,M,X,XL",
"images": [
{
"_id": "61963b4300622d794418687f",
"filename": "images[0]-1637235522052-730096647.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "61963c2e00622d7944187316",
"filename": "images[0]-1637235757437-927339951.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "61963c2e00622d7944187317",
"filename": "images[1]-1637235758276-122593199.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
}
],
"__v": 1,
"in_wishlist": false
},
{
"_id": "6197493700622d794418cdec",
"on_sale": true,
"sale_percent": 10,
"sold": 8,
"slider_new": false,
"slider_recent": false,
"slider_sold": false,
"date": "2021-11-18T09:03:04.358Z",
"title": "Printed Hoodie Grey",
"categories": "616e8081a17386218e27a206",
"subcate": "616e84b2a17386218e27a420",
"shop": "6196377900622d794418644b",
"price": "3,590 ",
"sale_title": "3,590 ",
"sale_price": "2,513",
"description": "ssss",
"colors": "#CD5C5C",
"size": "S,M,L,XL,XXL",
"images": [
{
"_id": "6197493700622d794418cded",
"filename": "images[0]-1637304627221-448731879.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "6197493700622d794418cdee",
"filename": "images[1]-1637304628418-102234457.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
},
{
"_id": "6197493700622d794418cdef",
"filename": "images[2]-1637304629564-380376274.jpeg",
"url": "www.shutterstock.com/image-photo/30092019-riga-latvia-sports-girl-prepares-1616559388"
}
],
"__v": 0,
"in_wishlist": false
}
]
},],}
I am not able to get the length of the data it is showing an error can somebody help me out in it
Please watch it carefully you are doing something wrong, check even apis is hitting or not
sir webhook error dara hai subscription mang rha hai isko kaise solve karain please guide kar dain
Read first comment