GetAuthorizationURL Method

Builds and returns the URL to which the user should be re-directed for authorization.

Syntax

ANSI (Cross Platform)
char* GetAuthorizationURL();

Unicode (Windows)
LPWSTR GetAuthorizationURL();
- (NSString*)getAuthorizationURL;
#define MID_OAUTH_GETAUTHORIZATIONURL 7

IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_OAuth_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

When this method is called, the class will return the URL used for authorization. The class will not make any connections itself, but instead return the URL to you so that you may re-direct the user to this location. This is useful when ClientProfile is set to cfWebServer. Before calling this method set:

Error Handling (C++)

This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]