Add prerequisites · coder92/api-samples@dfd5cfd · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit dfd5cfd

Browse files
Add prerequisites
1 parent 7a7aa3e commit dfd5cfd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

python/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
## Prerequisites
2+
3+
* Python 2.6 or greater
4+
5+
* The pip package management tool
6+
7+
* The Google APIs Client Library for Python:
8+
```
9+
pip install --upgrade google-api-python-client
10+
```
11+
* The google-auth, google-auth-oauthlib, and google-auth-httplib2 for user authorization.
12+
```
13+
pip install --upgrade google-auth google-auth-oauthlib google-auth-httplib2
14+
```
15+
16+
### Setting up your project and running code samples
17+
18+
1. Create a project in the API Console and set up credentials for a web application. Set the authorized redirect URIs as appropriate.
19+
2. Save the client_secrets.json file associated with your credentials to a local file.
20+
3. Copy the full code sample to a local file in the same directory as the client_secrets.json file (or modify the sample to correctly identify that file's location.
21+
4. Run the sample from the command line and set command-line arguments as necessary:
22+
23+
```python sample.py --arg1=value1 --arg2=value2 ...```
24+
25+
5. Most samples print something to STDOUT. You can also check the YouTube website to see the effects of requests that write data, such as requests that create playlists or channel sections.
26+
127
## Samples in this directory:
228
329
### [Add a channel section](/python/add_channel_section.py)

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.