require_once $file_path;
}
- public function content(array $request = []): string
+ protected function content(array $request = []): string
{
return $this->runModuleFunction('content');
}
- public function post(array $request = [], array $post = [])
+ protected function post(array $request = [], array $post = [])
{
parent::post($post);
*/
class Seen extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();
*/
class Conversation extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Filters extends BaseApi
{
- public function post(array $request = [], array $post = [])
+ protected function post(array $request = [], array $post = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
*/
class UpdateProfile extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();
*/
class VerifyCredentials extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Ids extends ContactEndpoint
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
self::checkAllowedScope(self::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Lists extends ContactEndpoint
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
self::checkAllowedScope(self::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Favorites extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Incoming extends ContactEndpoint
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
self::checkAllowedScope(self::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Statuses extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Tweets extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Destroy extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class HomeTimeline extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Mentions extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class NetworkPublicTimeline extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class PublicTimeline extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Show extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class UserTimeline extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Lookup extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Search extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
*/
class Show extends BaseApi
{
- public function rawContent()
+ protected function rawContent(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
Model\Contact\User::setIgnored($contact_id, local_user(), $ignored);
}
- public function content($update = 0): string
+ protected function content(array $request = []): string
{
if (!local_user()) {
return Login::form($_SERVER['REQUEST_URI']);
*/
class Revoke extends BaseApi
{
- public function post(array $request = [], array $post = [])
+ protected function post(array $request = [], array $post = [])
{
$request = self::getRequest([
'client_id' => '', // Client ID, obtained during app registration