Skip to main content

Light Plurk API 2.0 Oauth Library

Project description

poaurk

Light plurk + Oauth Library

Installation

pip install poaurk

Example

Authorize and get profile

import asyncio

import aiohttp
from poaurk import OauthCred, PlurkOAuth

cred = OauthCred(customer_key='your key from plurk',
                 customer_secret='your secret from plurk',
                 token='optional token',
                 token_secret='optional token secret'
                 )


async def main():
    async with aiohttp.ClientSession() as session:
        oauth = PlurkOAuth(cred, session)
        await oauth.authorize()

        r = await oauth.request('/APP/Timeline/getPlurk', {'plurk_id': '123'})
        print(r)
asyncio.run(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

poaurk-0.4.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poaurk-0.4.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file poaurk-0.4.0.tar.gz.

File metadata

  • Download URL: poaurk-0.4.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for poaurk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 67c08029db468528ec1c6446221f006da52d3f3def83723a984ac56983f6db18
MD5 09525701048931c122d484c17017c9eb
BLAKE2b-256 d137c1a3d974a935686769acc33ada5ca56075f1cadf15d77c6656a12aa81790

See more details on using hashes here.

File details

Details for the file poaurk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: poaurk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for poaurk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1296f4ee95ff0c357c2bab4f03f2e2cf9fa0345e6646b5ce7b366c5cbedf632
MD5 026ead257e7499983c064cad539884d8
BLAKE2b-256 17affdf5de43cc829cefa7204f35cde6a234948fa357f7d0b441c7f4c76b4171

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page