Within the endpoints handler method, how can the client information be obtained.
Whether the request came from Webclient or Android or iOS?
Also, how to identify whether the request came from API Explorer?
Within the endpoints handler method, how can the client information be obtained.
Whether the request came from Webclient or Android or iOS?
Also, how to identify whether the request came from API Explorer?
The User-Agent
header identifies most official clients by language. It will contain something similar to google-http-java-client
or google-api-java-client
. For JavaScript, you should look at X-Javascript-User-Agent
.