Retrofit with GET Request

24 views.

this is the service for get

Request:

http://postalpincode.in/api/pincode/(pass here postal code like below)

http://postalpincode.in/api/pincode/500018

Response:

{
“Message”: “Number of Post office(s) found: 8”,
“Status”: “Success”,
“PostOffice”: [
{
“Name”: “Bharat Nagar Colony”,
“Description”: “”,
“BranchType”: “Sub Post Office”,
“DeliveryStatus”: “Non-Delivery”,
“Taluk”: “Balanagar”,
“Circle”: “Balanagar”,
“District”: “K.V.Rangareddy”,
“Division”: “Hyderabad City”,
“Region”: “Hyderabad City”,
“State”: “Telangana”,
“Country”: “India”
},
{
“Name”: “Erragadda”,
“Description”: “”,
“BranchType”: “Sub Post Office”,
“DeliveryStatus”: “Non-Delivery”,
“Taluk”: “Ameerpet”,
“Circle”: “Ameerpet”,
“District”: “Hyderabad”,
“Division”: “Hyderabad City”,
“Region”: “Hyderabad City”,
“State”: “Telangana”,
“Country”: “India”
},
{
“Name”: “Fathenagar Colony”,
“Description”: “”,
“BranchType”: “Sub Post Office”,
“DeliveryStatus”: “Non-Delivery”,
“Taluk”: “Balanagar”,
“Circle”: “Balanagar”,
“District”: “K.V.Rangareddy”,
“Division”: “Hyderabad City”,
“Region”: “Hyderabad City”,
“State”: “Telangana”,
“Country”: “India”
},
{
“Name”: “Moosapet”,
“Description”: “”,
“BranchType”: “Branch Post Office”,
“DeliveryStatus”: “Non-Delivery”,
“Taluk”: “Balanagar”,
“Circle”: “Balanagar”,
“District”: “K.V.Rangareddy”,
“Division”: “Hyderabad City”,
“Region”: “Hyderabad City”,
“State”: “Telangana”,
“Country”: “India”
}, ]
}

activity_main.xml

MainActivity.java

CustomAdp.java

custom.xml

Register.java

ResponseData.java

PostOffice.java

output:

You may also like...

Leave a Reply