This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo_cloud_javascript_sdk_quick_start_guide [2019/01/17 12:15] johnnyz |
thinkgeo_cloud_javascript_sdk_quick_start_guide [2019/07/02 06:59] (current) kevinwan [More Client Class] |
||
---|---|---|---|
Line 7: | Line 7: | ||
**Step 1:** Create an API Key | **Step 1:** Create an API Key | ||
- | CloudClient.js requires an API key for access to ThinkGeo Cloud services, it can be created following the guide of "[[http://wiki.thinkgeo.com/wiki/thinkgeo_cloud_quick_start_guide|Create a Client Key]]". For help, see the [[https://cloud.thinkgeo.com/help/|API Reference]]. | + | CloudClient.js requires an API key for access to ThinkGeo Cloud services, it can be created following the "[[thinkgeo_cloud_client_keys_guideline|Client Keys Guide]]". For help, see the [[https://cloud.thinkgeo.com/help/|API Reference]]. |
Line 13: | Line 13: | ||
To get started making your application with Cloud Service, you need to use a text editor to update the HTML. | To get started making your application with Cloud Service, you need to use a text editor to update the HTML. | ||
- | - Start your text editor with a blank document "index.html" and copy and paste the following HTML. | + | * Start your text editor with a blank document "index.html" and copy and paste the following HTML. |
<code javascript> | <code javascript> | ||
<!DOCTYPE html> | <!DOCTYPE html> | ||
Line 24: | Line 24: | ||
</html> | </html> | ||
</code> | </code> | ||
- | - In the <head> tag, add a title, such as <title>My Cloud Service Sample</title>. | + | * In the <head> tag, add a title, such as <title>My Cloud Service Sample</title>. |
- | - In the <body> tag, add a DIV to show the response from Cloud Services. | + | * In the <body> tag, add a DIV to show the response from Cloud Services. |
After all the above, the HTML document should look as below: | After all the above, the HTML document should look as below: | ||
Line 90: | Line 90: | ||
|tg.GeocodingClient|A class provides the methods to access the Geocoding APIs.| | |tg.GeocodingClient|A class provides the methods to access the Geocoding APIs.| | ||
|tg.ReverseGeocodingClient|A class provides the methods to access the ReverseGeocoding APIs.| | |tg.ReverseGeocodingClient|A class provides the methods to access the ReverseGeocoding APIs.| | ||
+ | |tg.RoutingClient|A class provides the methods to access the Routing APIs.| | ||
|tg.ColorClient|A class provides the methods to access the ColorUtilities APIs.| | |tg.ColorClient|A class provides the methods to access the ColorUtilities APIs.| | ||
- | [[http://cloudclientsamples.thinkgeo.com/|Here]] is a dramatic example. | + | [[https://samples.thinkgeo.com/cloud|Here]] is an online sample. |