I'm trying to authenticate with a REST API via a token using AndroidAnnotations @Rest RestClient
Interface.
But due to a lack of documentation I can't get it running using setBearerAuth(String token);
I already have the interface and the class HeadersRequestInterceptor implements ClientHttpRequestInterceptor
, but I don't know where to call setBearerAuth(myCustomToken);
If someone could give me a hint I would be very graceful.
Cheers
MyRestClient.java:
MyActivity.java: