Select to view content in your preferred language

Using API key with QML

908
1
Jump to solution
07-26-2021 12:04 AM
MarkC1
by
Frequent Contributor

Is there any examples of how to implement an API Key with QML. The two examples in the documentation (link below) but both appear to be the same and for C++. Is it only supported for C++?

https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/create-and-...

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ErwinSoekianto
Esri Alum

@MarkC1 

 

The API Key is supported in both C++ and QML in ArcGIS Runtime SDK for Qt, thank you for pointing out the issue with the documentation. 

This is the doc (also has some c++ issue in the sample), 

- Setting up app level API Key , https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-arcgisruntimeenvironment.h... .

- Setting up API Key for RouteTask, https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-routetask.html 

 

I hope this is helpful. 

Erwin 

 

 

View solution in original post

1 Reply
ErwinSoekianto
Esri Alum

@MarkC1 

 

The API Key is supported in both C++ and QML in ArcGIS Runtime SDK for Qt, thank you for pointing out the issue with the documentation. 

This is the doc (also has some c++ issue in the sample), 

- Setting up app level API Key , https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-arcgisruntimeenvironment.h... .

- Setting up API Key for RouteTask, https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-routetask.html 

 

I hope this is helpful. 

Erwin