#!/usr/bin/env php ########################### # ComunicAPI clients add # # # # @author Pierre HUBERT # ########################### set_time_insert(time()); $client->set_name($_SERVER['argv'][1]); $client->set_token($_SERVER['argv'][2]); //Try to create the client if(!cs()->clients->create($client)){ msg("Err! Could not create client tokens!"); exit(10); } //Success msg("The client has been created!");