skip to main navigation

API Documentation and Examples

Nice264 API Documentation

The online video platform has all functions accessible by API. The following examples illustrate how the API can be accessed and invoked.

require_once("./UsersOA.class.php"); require_once("./NiceLib.inc.php"); $niceOA = NiceOA::getInstance()->connect("api.com","username","apssword"); // Get All Users $usersOA = new UsersOA(); $users = $usersOA->getList(); // Load user width id equals 1 $users = $usersOA ->get( 20 ); // Add new User $user = new User(); $user->username = "demo"; $user->name = "demo"; $user->surname = "demo demo"; $user->email = "demo@demo.com"; $user->password = "12345"; $user->role = "advertiser"; $userId = $usersOA ->insert( $user ); // Edit User emails $user = $usersOA ->get( $userId ); $user->$email = "update@demo.com"; $usersOA ->update( $user );