How to use it
Code parameter
The universal identifier of the application to be launched. Example:netflix
, primevideo
, youtube
, etc. You can find these codes in the Partner Portal under the Resources -> App Control section.
Query parameter
The query parameter is a set of information appended to an app launch command. It allows you to:- Send data to the target application
- Open a specific video, detail page or a user profile.
Error Handling
The promise may be rejected with an error object containing:code
(string): A machine-readable error code indicating the type of error. Currently there’s only one code already mapped:APP_NOT_FOUND
- The application specified bycode
does not existmessage
(string): A human-readable message providing more details about the error.
- Success: If the application is valid and available, it is launched with the optional
query
. The promise resolves successfully. - Failure: If the application is not valid or unavailable, the promise is rejected with a specific error code.