JGithubPackageActivityNotifications
class JGithubPackageActivityNotifications extends JGithubPackage
GitHub API Activity Events class for the Joomla Platform.
Methods
List your notifications.
List your notifications in a repository.
Mark as read.
Mark notifications as read in a repository.
View a single thread.
Mark a thread as read.
Get a Thread Subscription.
Set a Thread Subscription.
Delete a Thread Subscription.
Details
object
getList(
boolean $all = true,
boolean $participating = true,
JDate $since = null)
List your notifications.
List all notifications for the current user, grouped by repository.
object
getListRepository(
string $owner,
string $repo,
boolean $all = true,
boolean $participating = true,
JDate $since = null)
List your notifications in a repository.
List all notifications for the current user.
object
markRead(
boolean $unread = true,
boolean $read = true,
JDate $last_read_at = null)
Mark as read.
Marking a notification as “read” removes it from the default view on GitHub.com.
object
markReadRepository(
string $owner,
string $repo,
boolean $unread,
boolean $read,
JDate $last_read_at = null)
Mark notifications as read in a repository.
Marking all notifications in a repository as “read” removes them from the default view on GitHub.com.
object
markReadThread(
integer $id,
boolean $unread = true,
boolean $read = true)
Mark a thread as read.
object
getThreadSubscription(
integer $id)
Get a Thread Subscription.
This checks to see if the current user is subscribed to a thread. You can also get a Repository subscription.
object
setThreadSubscription(
integer $id,
boolean $subscribed,
boolean $ignored)
Set a Thread Subscription.
This lets you subscribe to a thread, or ignore it. Subscribing to a thread is unnecessary if the user is already subscribed to the repository. Ignoring a thread will mute all future notifications (until you comment or get @mentioned).