English | 中文
Java sample demonstrates how to use Java code to invoke the restful API of the Ads Kit.
Before using Java sample code, check whether the Java environment has been installed.
To use functions provided by Ads Kit restful API, you need to set related parameters in the request.
access token: the request token for the request, it can be obtained from the Developers Web.
requestUrl: URL for accessing Ads Kit, please refer to the restful API References.
The Java version is 1.7.0 or later.
The following describes methods to invoke a restful API.
1). Send an message to create a dataCollector. You need to assign a value to the request body based on the corresponding format and use the POST method to send the message body to the corresponding URL.
If you want to evaluate more about HMS Core, HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.
If you have questions about how to use HMS samples, try the following options:
- Stack Overflow is the best place for any programming questions. Be sure to tag your question with
huawei-mobile-services
. - Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.
If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.
Ads Kit Java code sample is licensed under the Apache License, version 2.0.