Integrate these APIs to your mobile/web app for learning
শেখার জন্য এই এপিআই গুলো মোবাইল/ওয়েব এ্যাপ্লিকেশনে ব্যাবহার করতে পারেন
API Testing Tools/API Client
Postman: https://www.postman.com/downloads/
Insomnia: https://insomnia.rest/download
Save data – ডেটা সার্ভারের ডেটাবেসে সেভ করার জন্য
URL:
https://touhidapps.com/api/v1/user.php
Method:
POST
Request Body:
{
"name": "Touhid Apps 44",
"phoneNumber": "654321",
"amount": 5.2,
"city": "Mymensingh",
"country": "Bangladesh",
"locations":[1,2]
}
Response Body:
{
"result": "Success"
}
Get data – সার্ভার থেকে ডেটা পাওয়ার জন্য
URL:
https://touhidapps.com/api/v1/user.php?pageNo=1&perPageData=20
Method:
GET
Request Param:
pageNo=1 / 2 / 3
perPageData=20 / 30 / 40
Response Body:
[
{
"userId": 3,
"name": "Touhid",
"phoneNumber": "123",
"amount": 1.5,
"address": {
"addressId": 2,
"city": "Kuala Lumpur",
"country": "Malaysia"
},
"location": [
{
"locationId": 2,
"locationName": "Mymensingh"
},
{
"locationId": 1,
"locationName": "Dhaka"
}
]
},
{
"userId": 4,
"name": "Rahim",
"phoneNumber": "567",
"amount": 55.30,
"address": {
"addressId": 2,
"city": "Dhaka",
"country": "Bangladesh"
},
"location": [
{
"locationId": 2,
"locationName": "Mymensingh"
}
]
}
]
Update data – সার্ভারের ডেটা আপডেট করার জন্য
URL:
https://touhidapps.com/api/v1/user.php
Method:
PUT
Request Param:
{
"userId": 12,
"name": "Touhid Apps",
"phoneNumber": "654321",
"amount": 5.2,
"city": "Mymensingh",
"country": "Bangladesh",
"locations":[2]
}
Response Body:
{
"result": "Success"
}
Delete data – সার্ভারের ডেটা ডিলিট করার জন্য
URL:
https://touhidapps.com/api/v1/user.php
Method:
DETELE
Request Param:
{
"userId": 12
}
Response Body:
{
"result": "Delete Success"
}
Location API
Save New Location –
URL:
https://touhidapps.com/api/v1/location.php
Method:
POST
Request Param:
{
"locationName":"Dhaka"
}
Response:
{
"result": "Success"
}
Get Location Data–
URL:
https://touhidapps.com/api/v1/location.php
Method:
GET
Request:
N/A
Response:
[
{
"id": "1",
"locationName": "Dhaka"
},
{
"id": "2",
"locationName": "Mymensingh"
}
]
File Upload API
Save Data-
URL:
https://touhidapps.com/api/v1/upload.php
Method:
POST
Request Param:
name:Touhid Apps Learn
photoTitle:This is our logo
my_profile_pic: <Select your photo>
Response:
{
"result": "Upload Success",
"name": "Touhid Apps Learn",
"photoTitle": "This is our logo",
"photoUrl": "/uploads/e53194f6482cee12d00e4ae69ee2308c14334ffa.png"
}
Get Saved Data-
URL
https://touhidapps.com/api/v1/upload.php
Method:
GET
Request Param:
N/A
Response:
[
{
"id": "1",
"name": "Touhid Apps Learn",
"title": "This is our logo",
"imageUrl": "/uploads/e53194f6482cee12d00e4ae69ee2308c14334ffa.png"
},
{
"id": "5",
"name": "Touhid Apps Learn",
"title": "This is our logo",
"imageUrl": "/uploads/e53194f6482cee12d00e4ae69ee2308c14334ffa.png"
},
{
"id": "6",
"name": "Touhid Apps Learn",
"title": "This is our logo",
"imageUrl": "/uploads/e53194f6482cee12d00e4ae69ee2308c14334ffa.png"
}
]
Here base url is: https://touhidapps.com/api
Example full imageUrl will be like: https://touhidapps.com/api/uploads/e53194f6482cee12d00e4ae69ee2308c14334ffa.png
Multimedia API
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
More API for practice:
URL:
https://touhidapps.com/api/demo/jsondemoapi.php?option=2
Method:
GET
Request Param:
N/A
Response:
{
"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
},
{
"id": 3,
"isActive": true,
"name": "Yellow Flower",
"details": "Yellow colored flower",
"imgData": {
"fileName": "yellow_flower.jpg",
"baseUrl": "https://touhidapps.com/api/demo/"
},
"attributes": [
"Smell",
"Red",
"Nice"
]
}
]
}
To get image url you can concatenate 2 values : baseUrl & fileName
Ex: https://touhidapps.com/api/demo/yellow_flower.jpg
Output:
You can make an UI like this:

