Skip to main content

Mashery authentication for requests

Project description

Mashery Authentication for Requests

Simple class for making authenticated requests to Mashery APIs using the `requests <>`_ library.


import requests
from requests_auth_mashery import MasheryAuth

def main():
api_key = 'angtfaaez72cc48dun5medxn'
api_secret = 'Vbafpwzsve'

mashery_auth = MasheryAuth(api_key, api_secret)

payload = {
'entitytype': 'artist',
'query': 'weezer',
'format': 'json',
url = ''
r = requests.get(url, auth=mashery_auth, params=payload)

print r.content

if __name__ == '__main__':

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests-auth-mashery-0.0.1.tar.gz (5.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page