Skip to main content

Simple interface to the MyAsk API.

Project description

py-myaskapi

Description

This library makes it easy to interface with MyAskAPI's API.

Installation

Simplue install using pip or your favorite package management tools.

pip install py-myaskapi

This will install the Requests library.

Usage

You can initialize it like this:

ma = myask_api.MyAskAPI(
    api_url='https://myaskai.com/api/1.1/wf/',
    client_id=settings.MYASK_AI_ID,
    api_key=settings.MYASK_AI_API_KEY)
# Now let's push some content to the API
ma.content(
    file_url=f'https://example.com/example-page/?version=json',
    meta_title='Example Page 101',
    meta_author='Ed Menendez',
    meta_link=f'https://example.com/example-page/',
)

Note: You should store your API keys outside of the code repository.

Credits

Thank you to LearnWPT for permitting publishing of this code.

License

MIT License

How to Contribute

Feel free to submit a PR. Test scripts would be nice! Please see Contributor Covenant for our code of conduct.

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

py-myaskapi-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

py_myaskapi-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file py-myaskapi-1.0.0.tar.gz.

File metadata

  • Download URL: py-myaskapi-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for py-myaskapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e9f21e3643f52afdb4b5ca69922a8af31b6faab1e924d7a6dc11d2c9f4ed42a6
MD5 5a90e365517b1b63ef73b165fa0ab430
BLAKE2b-256 ff6ef6fdcf15fde6ba85bd9e821473f69562a51cfdb4890f014cddd10cd0e0c0

See more details on using hashes here.

File details

Details for the file py_myaskapi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: py_myaskapi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for py_myaskapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac25de391f205878d0a76505cea0a23a27750bccec9c44713302cfa773f0895b
MD5 89b7c5801484538917d8fec798581f3e
BLAKE2b-256 d1a93806f4b83034f3eb4c9fdbf9381c30a11b221961e3344d43f4c4a6eac384

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