Skip to content

Instantly share code, notes, and snippets.

@psturc
Last active April 6, 2018 12:21
Show Gist options
  • Save psturc/cac94a79d0bab34d5813fdd7b751120a to your computer and use it in GitHub Desktop.
Save psturc/cac94a79d0bab34d5813fdd7b751120a to your computer and use it in GitHub Desktop.
curl to metrics app
curl -X POST \
https://aerogear-app-metrics-test-android-sdk-8-1523001311096.ci.feedhenry.org/metrics \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 76a14738-976f-f0ea-4039-12efeebf4f1e' \
-d '{
"clientId": "123456",
"data": {
"app": {
"id": "com.example.someApp",
"sdkVersion": "2.2.6",
"appVersion": "256"
},
"device": {
"platform": "ios",
"platformVersion": "27"
}
}
}' -v
{
"version": 1,
"clusterName": "192.168.64.74:8443",
"namespace": "myproject",
"clientId": "example_client_id",
"services": [
{
"id": "keycloak",
"name": "keycloak",
"type": "keycloak",
"url": "https://www.mocky.io/v2/5a6b59fb31000088191b8ac6",
"config": {
"auth-server-url": "https://keycloak.security.feedhenry.org/auth",
"realm": "secure-app",
"resource": "client-app",
"ssl-required": "external",
"url": "https://keycloak.security.feedhenry.org/auth"
}
},
{
"id": "metrics",
"name": "metrics",
"type": "metrics",
"url": "https://aerogear-app-metrics-test-android-sdk-8-1523001311096.ci.feedhenry.org/metrics",
"config": {}
},
{
"id": "push",
"name": "push",
"type": "push",
"url": "https://ups-dm-myproject-1.193b.starter-ca-central-1.openshiftapps.com/",
"config": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment