Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('wapi.php');
- $wapi = new libs_Wapi('API', 'API');
- echo '<!DOCTYPE html>
- <html>
- <head>
- <meta charset = "UTF-8"></meta>
- </head>
- <body>
- <h1>Ilość tagów:</h1>';
- $result = $wapi->doRequest('HashTagsNotificationsCount');
- if($wapi->isValid()) {
- echo '<ul>';
- foreach($result as $r) {
- echo '<li>' . $r['title'] . '</li>';
- }
- echo '</ul>';
- } else {
- echo $wapi->getError();
- }
- echo '<h1>Dowcipy z mikrobloga</h1>';
- $result = $wapi->doRequest('search/entries', array('q' => '#suchar'));
- if($wapi->isValid()) {
- echo '<ul>';
- foreach($result as $r) {
- echo '<li>' . $r['body'] . '</li>';
- }
- echo '</ul>';
- } else {
- echo $wapi->getError();
- }
- echo "</html>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement