You are here

TwitterOAuth2.php in Tweet Feed 4.x

Same filename and directory in other branches
  1. 8.3 src/Controller/TwitterOAuth2.php

File

src/Controller/TwitterOAuth2.php
View source
<?php

namespace Drupal\tweet_feed\Controller;

use Abraham\TwitterOAuth\TwitterOAuth;
class TwitterOAuth2 extends TwitterOAuth {
  const API_VERSION = '2';
  protected function getUrl(string $host, string $path) {
    return sprintf('%s/%s/%s.json', $host, self::API_VERSION, $path);
  }

}

Classes

Namesort descending Description
TwitterOAuth2