
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
A simple SDK for dedicated and widget apps working with Magic Kard Market.
Feel free to contribute! Submit a PR following the guidelines and it will be alright.
From the command line:
pip install mkmsdk
For the SDK to work properly you need to create four environment variables holding the tokens necessary to create the authorization to make requests. You can find them in your Magic Kard Market account page under the apps section.
MKM_APP_TOKEN
MKM_APP_SECRET
MKM_ACCESS_TOKEN
MKM_ACCESS_TOKEN_SECRET
[MKM_ACCESS_TOKEN]{.title-ref} and [MKM_ACCESS_TOKEN_SECRET]{.title-ref} need to be set to empty string if you want to use a widget app.
First thing to do is import the [Mkm]{.title-ref} class and the API map:
from mkmsdk.mkm import Mkm
from mkmsdk.api_map import _API_MAP
Instance a new instance of Mkm:
# Using API v1.1
mkm = Mkm(_API_MAP["1.1"]["api"], _API_MAP["1.1"]["api_root"])
# Using API v2.0
mkm = Mkm(_API_MAP["2.0"]["api"], _API_MAP["2.0"]["api_root"])
If you want to test on Magic Card Market's sandbox you must use the sandbox root endpoint:
mkm_sandbox = Mkm(_API_MAP["2.0"]["api"], _API_MAP["2.0"]["api_sandbox_root"])
To make a request:
response = mkm.account_management.account()
# Formats an endpoint
response = mkm.market_place.user(user='SampleUser')
# Call endpoint with specified parameters
response = mkm.account_management.vacation(params={"onVacation": "false"})
This will return a Response object that contains the response from the server.
Note that only [market_place]{.title-ref} requests work when using a widget app.
To get a json you can call response.json().
Integration tests will be skipped if the four environment variables are not set.
MKM_APP_TOKEN
MKM_APP_SECRET
MKM_ACCESS_TOKEN
MKM_ACCESS_TOKEN_SECRET
Note that some tests will be skipped depending if [MKM_ACCESS_TOKEN]{.title-ref} and [MKM_ACCESS_TOKEN_SECRET]{.title-ref} are empty strings or not.
FAQs
MagicKardMarket sdk
We found that mkmsdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.