def make_collection(namespace, nids, title, api_url):
    aliases = [(namespace, nid) for nid in nids]
    url = api_url / "/v1/collection?key=Heather"
    data_payload = json.dumps({
            "aliases": aliases,
            "title": title
        })
    resp = requests.post(url, data=data_payload, headers={'Content-type': 'application/json'})
    print resp.status_code
    collection_response = resp.json
    collection_id = collection_response["collection"]["_id"]
    print collection_id
    return collection_id
dataset/ETHPy150Open Impactstory/total-impact-core/extras/db_housekeeping/build_collections_from_issn.py/make_collection/operator `+` -> `/`