JenniferH JenniferH - 4 months ago 18
Android Question

How do i get an accessToken after authenticating with Neura sdk for Android

When using (neura sdk) to detect where the user was, and what he/she's been doing 30 minutes ago.

We've followed their guide for interacting with neara, and managed to authenticate with Neura successfully.

For our server side, we need to use neura's api request for receiving the user's situation.
The problem is that we don't have the accessToken as described in the link.

Were do i get this accessToken from ?

Answer

You can take it from : SDKUtils

mNeuraApiClient is an instance of com.neura.standalonesdk.service

import com.neura.standalonesdk.util;

SDKUtils.isConnected(getApplicationContext(), mNeuraApiClient);