Integrate these APIs to your mobile/web app for learning
শেখার জন্য এই এপিআই গুলো মোবাইল/ওয়েব এ্যাপ্লিকেশনে ব্যাবহার করতে পারেন
Save data – ডেটা সার্ভারের ডেটাবেসে সেভ করার জন্য:
URL:
https://touhidapps.com/api/user_data.php
Method:
POST
Request Body:
{
"name": "Touhid Apps",
"phone": "123456",
"note": "This is my note"
}
Response Body:
{
"result": "Save Success"
}
Get data – সার্ভার থেকে ডেটা পাওয়ার জন্য:
URL:
https://touhidapps.com/api/user_data.php?page=1
Method:
GET
Request Param:
page=1 / 2 / 3
Response Body:
{
"message": "2 data found",
"users": [
{
"userId": 1255,
"userName": "Touhid Apps",
"userPhone": "123456",
"userNote": "This is my note"
},
{
"userId": 1254,
"userName": "touhid",
"userPhone": "887",
"userNote": "Good day"
}
]
}
Update data – সার্ভারের ডেটা আপডেট করার জন্য:
URL:
https://touhidapps.com/api/user_data.php
Method:
PUT
Request Param:
{
"id": 25,
"name": "Touhid Apps new",
"phone": "123456",
"note": "This is my new note"
}
Response Body:
{
"result": "Update Success"
}
Delete data – সার্ভারের ডেটা ডিলিট করার জন্য:
URL:
https://touhidapps.com/api/user_data.php
Method:
DETELE
Request Param:
{
"id": 25
}
Response Body:
{
"result": "Delete Success"
}
More API for JSON data parsing practice
URL:
https://touhidapps.com/api/demo/jsondemoapi.php
Method:
GET
Request param (Query String):
Here: 1 will return a string, 2 will return a json object and 3 will return a json array.
option
value: 1 or 2 or 3
Ex: .../jsondemoapi.php?option=2
Response:
For param 1:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
For param 2:
{
"myJsonObject": [
{
"id": 1,
"isActive": true,
"name": "Colors",
"details": "Color pencil",
"imgData": {
"fileName": "colors.jpg",
"baseUrl": "https://touhidapps.com/api/demo/"
},
"attributes": [
"Smell",
"Red",
"Nice"
]
},
{
"id": 2,
"isActive": true,
"name": "Dew",
"details": "Dew on grass",
"imgData": {
"fileName": "dew.jpg",
"baseUrl": "https://touhidapps.com/api/demo/"
},
"attributes": null
}
... more data here
]
}
For param 3:
[
{
"id": 1,
"isActive": true,
"name": "Colors",
"details": "Color pencil",
"imgData": {
"fileName": "colors.jpg",
"baseUrl": "https://touhidapps.com/api/demo/"
},
"attributes": [
"Smell",
"Red",
"Nice"
]
},
{
"id": 2,
"isActive": true,
"name": "Dew",
"details": "Dew on grass",
"imgData": {
"fileName": "dew.jpg",
"baseUrl": "https://touhidapps.com/api/demo/"
},
"attributes": null
},
... more data here
]
Image:
Preview:


URL:
https://touhidapps.com/api/demo/red_flower.jpg
https://touhidapps.com/api/demo/me2.jpg
Audio:
Preview:
URL:
https://touhidapps.com/api/demo/akash.mp3
https://touhidapps.com/api/demo/electronic-commercial-ambient-corporate-162595.mp3
Video:
Preview:
URL:
https://touhidapps.com/api/demo/pink.mp4
https://touhidapps.com/api/demo/kotlin_promo.mp4