This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Sends a message to a channel. | |
* @param username Set your bot's user name. Must be used in conjunction with `as_user` set to false, otherwise ignored. See [authorship](#authorship) below. | |
* @param threadTs Provide another message's `ts` value to make this message a reply. Avoid using a reply's `ts` value; use its parent instead. | |
* @param attachments Structured message attachments. | |
* @param unfurlLinks Pass true to enable unfurling of primarily text-based content. | |
* @param text Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead. | |
* @param unfurlMedia Pass false to disable unfurling of media content. | |
* @param parse Change how messages are treated. Defaults to `none`. See [below](#formatting). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from twitter import * | |
# Twitter app credentials | |
token = "..." | |
token_secret = "..." | |
consumer_key = "..." | |
consumer_secret = "..." | |
# Twitter client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import os | |
import requests | |
import sys | |
# Verify the org name variable has been passed | |
sys_args = sys.argv | |
if len(sys_args)==1: | |
print("Please provide the GitHub org name") | |
print("{} <github-org>".format(sys_args[0])) |
OlderNewer