public function createInternalRequestClient()
	{
		// client id/secret
		$clientId     = md5(uniqid(\User::get('id'), true));
		$clientSecret = sha1($clientId);

		// application model
		$application = new \Components\Developer\Models\Application();
		$application->set('name', 'Hub Account');
		$application->set('description', 'Hub account for internal requests. DO NOT DELETE.');
		$application->set('redirect_uri', 'https://' . $_SERVER['HTTP_HOST']);
		$application->set('client_id', $clientId);
		$application->set('client_secret', $clientSecret);
		$application->set('grant_types', 'client_credentials session tool');
		$application->set('created', with(new Date('now'))->toSql());
		$application->set('created_by', \User::get('id'));
		$application->set('state', 1);
		$application->set('hub_account', 1);
		$application->save();

		return true;
	}
public function createInternalRequestClient()
	{
		// client id/secret
		$clientId     = md5(uniqid(\User::get('id'), true));
		$clientSecret = sha1($clientId);

		// application model
		$application = new \Components\Developer\Models\Application();
		$application->set('name', 'Hub Account');
		$application->set('description', 'Hub account for internal requests. DO NOT DELETE.');
		$application->set('redirect_uri', 'https://' . $_SERVER['HTTP_HOST']);
		$application->set('client_id', $clientId);
		$application->set('client_secret', $clientSecret);
		$application->set('grant_types', 'client_credentials session tool');
		$application->set('created', with(new Date('now'))->toSql());
		$application->set('created_by', \User::get('id'));
		$application->set('state', 1);
		$application->set('hub_account', 1);
		$application->save();

		return true;
	}
public function createInternalRequestClient ( ) { // client id/secret $ clientId = md5 ( uniqid ( \ User :: get ( 'id' ) , true ) ) ; $ clientSecret = sha1 ( $ clientId ) ; // application model $ application = new \ Components \ Developer \ Models \ Application ( ) ; $ application -> set ( 'name' , 'Hub Account' ) ; $ application -> set ( 'description' , 'Hub account for internal requests. DO NOT DELETE.' ) ; $ application -> set ( 'redirect_uri' , 'https://' . $ _SERVER [ 'HTTP_HOST' ] ) ; $ application -> set ( 'client_id' , $ clientId ) ; $ application -> set ( 'client_secret' , $ clientSecret ) ; $ application -> set ( 'grant_types' , 'client_credentials session tool' ) ; $ application -> set ( 'created' , with ( new Date ( 'now' ) ) -> toSql ( ) ) ; $ application -> set ( 'created_by' , \ User :: get ( 'id' ) ) ; $ application -> set ( 'state' , 1 ) ; $ application -> set ( 'hub_account' , 1 ) ; $ application -> save ( ) ; return true ; }
Create internal client

@return  bool
Create internal client