Repository navigation
Service structure
To provide your apps' list, you have to implement the service provider. The structure of the service is as below. Your root folder has to contain imgs folder and the two files - program_version.json, program_list.json.
Now you can set the canonical (imgs/avto_nishanlar2.png) or noncanonical( https://highsoft.az/avto_nishanlar2.png) url path for the image.
root->
imgs - "contains the logos of your porgrams that on the list"
program_version.json - "shows the ads service version."
program_list.json - "contains a program list"
The program_version.json service has to return a json as below.
{
"version":"13"
}The program_list.json service has to return a json as below. There are two sample applications in this example:
{
"programs":[
{
"name":"Avto Nişanlar",
"desc":"Bütün yol nişanları",
"uri":"com.mobapphome.avtonishanlar",
"img":"imgs/avto_nishanlar2.png",
"release_date":"22/12/2016",
"update_date":"22/12/2016"
},
{
"name":"Məzənnə",
"desc":"Valyuta çeviricisi və məzənnələr",
"uri":"com.mobapphome.currency",
"img":"https://highsoft.az/mezenne2.png",
"release_date":"22/12/2016",
"update_date":"22/12/2016"
}
]
}The release_date and update_date data might be left.
The library has been testesd with up to 1000 program items in the program list. It works normally.
You can provide the http:// and https:// requests. The library works with both of them.
You can check your json correctness with this app - jsonlint.com