by Sebastian Flores.
Hello,
First of all thanks if you are reading, my english isn't the best so I hope you can understand and help if you can.
So i'm working with my university and doing a page that shows the sports data to the users.
This sport data is taken from a service provided from the IT department. Inputs are: Username, password and token (the unique token of the service), and the output is a tokenAPP (unique token for the user).
So.. Having this tokenAPP allows to retrieve all the info from the user.
The problem is that I can't manage to obtain the password of the user (I know it can't be seen because its coded) so I can activate the service.
Can you guys help me to think of a way of doing this please?
I was thinking to eliminate the authentication of the service, where the user, pass and token are entered and use the login of moodle and add the token to have the tokenAPP.
The thing is that the service is created from outside.
Pleaseee help. Thanks!
The services have this structure:
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# UII
Servicios relacionados a Deportes UII por parte de intranet.
##UIILogin [/login{?token,email,password}]
###Login[POST]
+ Response 200 (application/json)
{
"tokenApp": "klklklKLKLK",
"respuesta": "OK",
"valido": true
}
##UIIRegistroAsistencia [/RegistroAsistencia{?token,tokenApp,fechaini,fechafin}]
###RegistroAsistencia[POST]
+ Response 200 (application/json)
{
"Mes": "Agosto",
"Semana": "3",
"Fecha": "01-09-2016",
"Deporte": "Futbol",
"HoraInicio": "14:10",
"HoraTermino": "15:10",
"Asistencia": "1"
}
##UAIContadorAsistencia [/ContadorAsistencia{?token,tokenApp,fechaini,fechafin}]
###ContadorAsistencia[POST]
+ Response 200 (application/json)
{
"ContadorAsistencia": "10";
}