PHP connection and module for working with uCoz API
PHP is a paid service, available in the “Optimal”, “Maximum”, and “Store” packages. Instructions for connecting PHP.
PHP module for uAPI. Version 2.5 dated February 20, 2019.
PHP uAPI module for use on external hosting and servers.
PHP module uAPI for working on the built-in PHP hosting uCoz.
Before using the module, you must set connection settings in the file uAPImodule.php:
$myWebsite = 'http://ucoz.ucoz.ru/';
Indicate the URL of your site on uCoz to access uAPI.
/www, indicate the address along with www.Examples:
$myWebsite = 'http://www.mywebsite.ucoz.ru/';
$myWebsite = 'http://www.mywebsite.com/';
Consumer Key - application key issued during registration in uAPI panel.
Consumer Secret - application secret key. Used to generate a request signature.
OAuth Token - access token received after authorizing the application on the site.
OAuth Token Secret - token secret. Used in conjunction with oauth_consumer_secret to sign requests.
The parameter defines the HTTP method used when accessing the API:
get | post | put | delete
The choice of method depends on the specific uAPI endpoint. Valid methods for each request are listed in the documentation.