Can ionic.io User data publicly available?


#1

Data I associate to users seems to be available only for authenticated user? Can I somehow make it available publicly?

Use case scenario, there’s an user ExampleUser and I save a “status” data form him, then I want to display that status data available publicly, on myappsite.com/ExampleUser. Is this possible somehow?


#2

Above is actually rather easy

Using the endpoints specified in

And the API token from my app settings in ionic.io I was able to

$http({ method: 'GET', url: ' https://api.ionic.io/users/USERIONICID/custom', headers: { 'Authorization': 'Bearer ' + 'APITOKEN' }, }).then(function successCallback(response) { vm.userData = response.data.data }, function errorCallback(response) { if(response.status = 401){ $log.log("ohohoh") } }); } }