This file contains 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
const fetch = require('node-fetch') | |
fetch('http://yoursite/api/resource/Item/itemname', { | |
headers: { | |
'Authorization': 'token key_id:key_secret', | |
'Accept': 'application/json', | |
'Content-Type': 'application/json', | |
} | |
}) | |
.then(r => r.json()) |
This file contains 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 slack | |
from collections import defaultdict | |
from time import sleep | |
def process_channels(channels): | |
users = defaultdict(list) | |
for ch in channels: |
This file contains 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
#!/usr/bin/env python | |
# Simple script to get PAN card application status | |
# Author: Ankush Menat | |
# Licence: WTFPL | |
# Requirements: requests, BeautifulSoup4 | |
import requests | |
from bs4 import BeautifulSoup |