Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.84 KB

010_examples_sendmessage.md

File metadata and controls

43 lines (31 loc) · 1.84 KB

tanglePHP

Discord Twitter
Apache-2.0 license IOTA >PHP 8 WorkflowUnitTest >packagist_stable

Examples Action (sendMessage)

Include and create a client

<?php
  // include iota lib
  require_once("autoload.php");
  // create client
  $client = new IOTA\Client\SingleNodeClient();

Basic sendMessage

  echo $ret = (new IOTA\Action\sendMessage($client))->index('#tanglePHP')
                                        ->data('message test! follow me on Twitter @tanglePHP')
                                        ->run();

Additional Examples

Please find other examples in the examples folder.


<- Back to Overview