« Back to Product

Documentation

SPO_MakeAPIRequest

Require: IP-Symcon >= 5.3

 string SPO_MakeAPIRequest (int $InstanceID, string $Method, string $Url, string $Body) 

Parameters

InstanceID

ID of the Instance

Method

Type of HTML request

Url

Path, which follows `https://api.spotify.com/v1

Body

Message to be sent to the recipient

Returns

The function returns the API return as a string or false on error.

Description

Makes a request to the Spotify web API with the specified parameters. Only the endpoint specific path needs to be specified, the general part, i.e. https://api.spotify.com/v1 is added automatically

Example

SPO_MakeAPIRequest(12345, 'GET', '/me', '');
Any questions?