Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
/ twitterhook Public archive

A PHP library to interact with the Twitter's REST API using single user sign-on OAuth authentication.

Notifications You must be signed in to change notification settings

johnshopkins/twitterhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TwitterHook

A PHP library to interact with the Twitter's REST API using single user sign-on OAuth authentication.

Example

<?php

include "path/to/vendor/autoload.php";

$consumer = array(
	"key" =>"consumerkey",
	"secret" => "consumersecret"
);

$token = array(
	"key" =>"accesstoken",
	"secret" => "accesstokensecret"
);

$twitterHook = new \TwitterHook\Client($consumer, $token);

$content = $twitterHook->get("statuses/home_timeline");

$tweet = $twitterHook->post("statuses/update", array(
  "status" => "You would not believe how I posted this tweet.",
));

About

A PHP library to interact with the Twitter's REST API using single user sign-on OAuth authentication.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages