Change language settings to use Topvisor in your preferred language. You can select and set a preferred display language later in the Account settings. Change language settings to use Topvisor in your preferred language. ru Русский Apply

Topvisor SDK::Pen

Use the Pen object to create and send an API request.

Class methods

  • setData($arrayData) - sets the request parameters
  • setFields(array $fieldsSelect) - sets the fields parameter
  • setFilters(array $fieldsFilter) - sets the filters parameter
  • serOrders(array $fieldsOrder) - sets the orders parameter
  • setLimit(int $limit) - sets the limit parameter
  • setOffset(int offset) - sets the offset parameter
  • exec() - runs an API request, returns the object page parameter

Example

<?php //... $projectId = '%NN%'; $selectorKeywords = new TV\Pen($Session, 'get', 'keywords_2', 'keywords'); $selectorKeywords->setData(['project_id' => $projectId]); $selectorKeywords->setLimit(10); $page = $selectorKeywords->exec(); //...