Skip to main content

Simple class for making authenticated requests to Mashery APIs using the requests library.

Example

import requests
from requests_auth_mashery import MasheryAuth


def main():
    api_key = 'EXAMPLE'
    api_secret = 'EXAMPLE'

    mashery_auth = MasheryAuth(api_key, api_secret)

    payload = {
        'entitytype': 'artist',
        'query': 'weezer',
        'format': 'json',
    }
    url = 'http://api.rovicorp.com/search/v2.1/music/search'
    r = requests.get(url, auth=mashery_auth, params=payload)

    print r.content


if __name__ == '__main__':
    main()

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.3.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file requests-auth-mashery-0.0.3.tar.gz.

File metadata

File hashes

Hashes for requests-auth-mashery-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4ebebe11849289b1d0da6aec6893fee51d62ab88806db3c3a97bba70e73314ff
MD5 3ce579ae72127968bfc6283d06123df6
BLAKE2b-256 4a66d4acc5d08818165532892b4445816d6e55070061ab2d4b6dcb1ac79b4379

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.4

1 file

This release

0.0.3 This release

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page