OptionsFactoryCreateOauth(String, String, String, String, IAddressSettings, IDomElement, NullableBoolean, NullableBoolean) Method
Create the options object which used for initializing the API for use oAuth authorization
Namespace: StreetSmart.Common.FactoriesAssembly: StreetSmart.WinForms (in StreetSmart.WinForms.dll) Version: 24.7.0.0+cc0a01953d1235087ce28d3e921f5bb47d3c0460
public static IOptions CreateOauth(
string clientId,
string apiKey,
string srs,
string locale,
IAddressSettings addressSettings,
IDomElement element,
bool? loginOauthSilentOnly = null,
bool? doOAuthLogoutOnDestroy = null
)
- clientId String
- The clientId of the OAuth user.
- apiKey String
- ApiKey given to the user.
- srs String
- Coordinate system used in the API. E.g. "EPSG:29882".
- locale String
- Language used as default in the API.
- addressSettings IAddressSettings
- The address settings to use for address searches.
- element IDomElement
- The Domelement where in the panoramic image is rendered.
- loginOauthSilentOnly NullableBoolean (Optional)
- Indicates to login with OAuth with silent authentication only. true means using silent authentication only. false means use silent authentication together with login popup authentication if silent authentication fails (for example when user session expired). This parameter is optional and false is default.
- doOAuthLogoutOnDestroy NullableBoolean (Optional)
- Indicates whether to log out via oauth on destroy
IOptionsObject containing the options used for initializing the API
Supported in: 18.7