LLMS_Dot_Com_API::__construct( stirng $resource, array $data, string $method = null, bool $is_rest = true )

Construct an API call, parameters are passed to private call() function


Parameters Parameters

$resource

(stirng) (Required) url endpoint or resource to make a request to

$data

(array) (Required) array of data to pass in the body of the request

$method

(string) (Optional) method of request (POST, GET, DELETE, PUT, etc...)

Default value: null

$is_rest

(bool) (Optional) if true adds wp-json rest to request url, otherwise requests to site base

Default value: true


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.dot.com.api.php

	public function __construct( $resource, $data, $method = null, $is_rest = true ) {

		$this->is_rest = $is_rest;
		parent::__construct( $resource, $data, $method );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.22.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.