\Vigas\Application\ModelCurlRequest

Trait CurlRequest.

Builds and sends an HTTP(S) request, used to get json data from streaming platforms

Summary

Methods
Properties
Constants
curlRequest()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

curlRequest()

curlRequest(string  $url, string|null  $post_data = null, string|null  $http_header = null) : string

Parameters

string $url

URL to send the request to

string|null $post_data

POST data to send

string|null $http_header

HTTP header to set

Returns

string —

Returns http(s) response