POST Request to Watch Repository9:46 with Alena Holligan
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.
You need to sign up for Treehouse in order to download course files.Sign up