Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit c57b15b

Browse files
committed
Active and reactive endpoints with our bot implementation added
1 parent 3a67532 commit c57b15b

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

examples/endpoint.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
require_once __DIR__ . '/../vendor/autoload.php';
4+
5+
$client = new MyBotClient(); // The reactive implementation of your bot
6+
7+
$result = $client->init();

examples/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
require_once __DIR__ . '/../vendor/autoload.php';
4+
5+
$to = "00:0000000a00c00000000ebd000ed000ab@thread.skype";
6+
7+
$server = new MyBotServer( 'skype' ); // Your active implementation of your bot
8+
9+
$server->sendMessage( $to, "Hey! What's up! Here goes a duck picture!" );
10+
11+
$server->sendImage( $to, 'http://www.publicdomainpictures.net/pictures/30000/t2/duck-on-a-rock.jpg' );

0 commit comments

Comments
 (0)