Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
To change the watch status of a repository, we'll need to PUT and DELETE our changes. Using our wrapper library, these interactions are going to work the same as the GET requests we've made so far. The only thing that changes is the method called.
isset() function: If notices are turned on and a variable is not set, you will get a notice if you try to access that variable. By using the isset function, we can check if that variable is set without causing a notice to be thrown. For more information, check out the Error Handling course.
GitHub API Documentation for Watching Repositories. Watching a Repository registers the user to receive notifications on new discussions, as well as events in the user's activity feed. See Repository Starring for simple repository bookmarks.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up