TWITTER_POSTSTATUS::statuses_update( string $status )

Send data to Automator API.


Parameters Parameters

$status

(string) (Required)


Top ↑

Return Return

(mixed)


Source Source

File: src/integrations/twitter/actions/twitter-poststatus.php

	public function statuses_update( $status ) {



		// Get twitter credentials.
		$request_body = Automator()->helpers->recipe->twitter->get_client();

		$url = Automator()->helpers->recipe->twitter->automator_api;

		$request_body['action'] = 'twitter_statuses_update';
		$request_body['status'] = $status;
		$args                   = array();
		$args['body']           = $request_body;

		return wp_remote_post( $url, $args );
	}