Devel a Camel K application
Budget: €750 – €1,500 EUR
Backend development request on Camel K / Couchbase DB / Postgres DB
for this development is required to consider for each integration flow a link with unique user code to be recovered in a Postgres database table (details to be defined)
this application will run on OKD cluster on azure.
we can provide a dev&test environment in our private account.
We need a software development based on apache camel k framework that satisfies the following characteristics:
1 - Flows from Iot HUB Azure
- ensure the integration and transport of messages to events from azure iot hub / event hub:
- reading of events from event hubs
- writing on Couchbase db (details to be defined)
2 - Wearable integration and recovery flows (Apple, Fitbit, Xioami….)
- ensure the consumption of Fitbit API:
- using the oauth 2.0 authorization token recovered from a postgres database (table and schema to be defined) for each user we defined which wearable service is active and therefore authorization token (potentially 1-n)
- performs the recovery according to a timer (time scheduler, recovery of all data for user 1 at midnight every day for the fitbit (time interval to be agreed))
- Expose the same services using api created on camel k (for consumption by web portal on demand)
-manage the refresh token based on expired time, we need to refresh the auth token in the postgres database based on scheduled time.
- the response json must be written on Db couchbase
3 - Integration with azure Cognitive Services for Image Analysis
- retrieve the pdf / jpg images from the couchbase database, referring to the user (identification code)
- integrate with Azure Cognitive services api to recognize the text included in the image / document
- define the return json table (to understand)
- write the return json on couchbase
Registrare Applicazione
https://dev.fitbit.com/apps/new
#Abilitare Auth
https://dev.fitbit.com/apps/oauthinteractivetutorial
#Autenticazione
curl -i -X POST -H 'Authorization: Basic MjNCS1cyOjk5MWUzMmMwMmU0ZTM1NTc1MTRiMGEzMDM4ZjE0OWFj' --data "clientId=23BKW2" --data "grant_type=authorization_code" --data "redirect_uri=https%3A%2F%2Ftest.test" --data "code=b739ff55d1c45a2a1c4339556e042c9c0925e17f" -H 'Content-Type: application/x-www-form-urlencoded' https://api.fitbit.com/oauth2/token
# Get Profilo
curl -i -H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyM0JLVzIiLCJzdWIiOiI0MjlaWTYiLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJyc29jIHJzZXQgcmFjdCBybG9jIHJ3ZWkgcmhyIHJwcm8gcm51dCByc2xlIiwiZXhwIjoxNjMzODE4NDgwLCJpYXQiOjE2MzM3ODk2ODB9.BzoMmgyE6MXIYXuUQnet7lLEAe63a2Yp-KYp0FSA_ek" https://api.fitbit.com/1/user/-/profile.json
# Sonno
curl -i -H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyM0JLVzIiLCJzdWIiOiI0MjlaWTYiLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJyc29jIHJzZXQgcmFjdCBybG9jIHJ3ZWkgcmhyIHJwcm8gcm51dCByc2xlIiwiZXhwIjoxNjMzODE4NDgwLCJpYXQiOjE2MzM3ODk2ODB9.BzoMmgyE6MXIYXuUQnet7lLEAe63a2Yp-KYp0FSA_ek" https://api.fitbit.com/1.2/user/-/sleep/date/2021-07-28.json
#Battiti
https://api.fitbit.com/1/user/-/activities/heart/date/2021-07-28/2021-07-28/1min.json
#Documentazione
https://dev.fitbit.com/build/reference/web-api/explore/
for this development is required to consider for each integration flow a link with unique user code to be recovered in a Postgres database table (details to be defined)
this application will run on OKD cluster on azure.
we can provide a dev&test environment in our private account.
We need a software development based on apache camel k framework that satisfies the following characteristics:
1 - Flows from Iot HUB Azure
- ensure the integration and transport of messages to events from azure iot hub / event hub:
- reading of events from event hubs
- writing on Couchbase db (details to be defined)
2 - Wearable integration and recovery flows (Apple, Fitbit, Xioami….)
- ensure the consumption of Fitbit API:
- using the oauth 2.0 authorization token recovered from a postgres database (table and schema to be defined) for each user we defined which wearable service is active and therefore authorization token (potentially 1-n)
- performs the recovery according to a timer (time scheduler, recovery of all data for user 1 at midnight every day for the fitbit (time interval to be agreed))
- Expose the same services using api created on camel k (for consumption by web portal on demand)
-manage the refresh token based on expired time, we need to refresh the auth token in the postgres database based on scheduled time.
- the response json must be written on Db couchbase
3 - Integration with azure Cognitive Services for Image Analysis
- retrieve the pdf / jpg images from the couchbase database, referring to the user (identification code)
- integrate with Azure Cognitive services api to recognize the text included in the image / document
- define the return json table (to understand)
- write the return json on couchbase
Registrare Applicazione
https://dev.fitbit.com/apps/new
#Abilitare Auth
https://dev.fitbit.com/apps/oauthinteractivetutorial
#Autenticazione
curl -i -X POST -H 'Authorization: Basic MjNCS1cyOjk5MWUzMmMwMmU0ZTM1NTc1MTRiMGEzMDM4ZjE0OWFj' --data "clientId=23BKW2" --data "grant_type=authorization_code" --data "redirect_uri=https%3A%2F%2Ftest.test" --data "code=b739ff55d1c45a2a1c4339556e042c9c0925e17f" -H 'Content-Type: application/x-www-form-urlencoded' https://api.fitbit.com/oauth2/token
# Get Profilo
curl -i -H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyM0JLVzIiLCJzdWIiOiI0MjlaWTYiLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJyc29jIHJzZXQgcmFjdCBybG9jIHJ3ZWkgcmhyIHJwcm8gcm51dCByc2xlIiwiZXhwIjoxNjMzODE4NDgwLCJpYXQiOjE2MzM3ODk2ODB9.BzoMmgyE6MXIYXuUQnet7lLEAe63a2Yp-KYp0FSA_ek" https://api.fitbit.com/1/user/-/profile.json
# Sonno
curl -i -H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyM0JLVzIiLCJzdWIiOiI0MjlaWTYiLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJyc29jIHJzZXQgcmFjdCBybG9jIHJ3ZWkgcmhyIHJwcm8gcm51dCByc2xlIiwiZXhwIjoxNjMzODE4NDgwLCJpYXQiOjE2MzM3ODk2ODB9.BzoMmgyE6MXIYXuUQnet7lLEAe63a2Yp-KYp0FSA_ek" https://api.fitbit.com/1.2/user/-/sleep/date/2021-07-28.json
#Battiti
https://api.fitbit.com/1/user/-/activities/heart/date/2021-07-28/2021-07-28/1min.json
#Documentazione
https://dev.fitbit.com/build/reference/web-api/explore/