|
18 | 18 | # Using GAME Twitter API credentials |
19 | 19 | options = { |
20 | 20 | "credentials": { |
21 | | - "gameTwitterAccessToken": os.environ.get("GAME_TWITTER_ACCESS_TOKEN"), |
| 21 | + "gameTwitterAccessToken": "apx-xxx", |
22 | 22 | }, |
23 | 23 | } |
24 | 24 |
|
|
28 | 28 | # Test case 1: Post a Tweet |
29 | 29 | print("\nRunning Test Case 1: Post a Tweet") |
30 | 30 | post_tweet_fn = twitter_plugin.twitter_client.create_tweet |
31 | | -post_tweet_fn(text="Hello world! This is a test tweet from the Twitter Plugin!", media_ids=[]) |
| 31 | +post_tweet_fn(text="Hello world! This is a test tweet from the Twitter Plugin!") |
32 | 32 | print("Posted tweet!") |
33 | 33 |
|
34 | 34 | # Test case 2: Post a Tweet with Media |
|
45 | 45 | # Test case 3: Reply to a Tweet |
46 | 46 | print("\nRunning Test Case 3: Reply to a Tweet") |
47 | 47 | reply_tweet_fn = twitter_plugin.twitter_client.create_tweet |
48 | | -reply_tweet_fn(in_reply_to_tweet_id=1914249509963808976, text="Hey! This is a test reply!", media_ids=[]) |
| 48 | +reply_tweet_fn(in_reply_to_tweet_id=1915274034100809968, text="Hey! This is a test reply!") |
49 | 49 | print("Replied to tweet!") |
50 | 50 |
|
51 | 51 | # Test case 4: Like a Tweet |
52 | 52 | print("\nRunning Test Case 4: Like a Tweet") |
53 | 53 | like_tweet_fn = twitter_plugin.twitter_client.like |
54 | | -like_tweet_fn(tweet_id=1914249509963808976) |
| 54 | +like_tweet_fn(tweet_id=1915274034100809968) |
55 | 55 | print("Liked tweet!") |
56 | 56 |
|
57 | 57 | # Test case 5: Quote a Tweet |
58 | 58 | print("\nRunning Test Case 5: Quote a Tweet") |
59 | 59 | quote_tweet_fn = twitter_plugin.twitter_client.create_tweet |
60 | | -quote_tweet_fn(tweet_id=1914249509963808976, quote="Hey! This is a test quote tweet!", media_ids=[]) |
| 60 | +quote_tweet_fn(quote_tweet_id=1915274034100809968, text="Hey! This is a test quote tweet!") |
61 | 61 | print("Quoted tweet!") |
62 | 62 |
|
63 | 63 | # Test case 6: Get Metrics |
|
0 commit comments