Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830

Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
TWITTER_POSTSTATUS::statuses_update( string $status,  $media_id = '' )

Send data to Automator API.


Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830

Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

Parameters Parameters

$status

(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 );
	}