Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
This Python library enables you to use the API effectively.
To install use this library, you may install it with PyPi.
Open the Terminal and navigate to the folder you desire. Then type,
pip install ButtonRequest-APIv1
To use that, you must first declare the following,
from ButtonRequest.APIv1 import apiClient
client = apiClient("{API Token}")
response = client.message.fetch()
You may also add filter conditions,
response = client.message.fetch(filterDict={
"msg_id":"{Msg ID}",
"device_id":"{Device ID}",
"pin":"{Pin Status}",
"shared_to_me":"{Shared To Me}"
})
Eligible Filter Parameters: msg_id, device_id, pin, shared_to_me
response = client.message.pinStatus("{Message ID}", "{Pin or Unpin}")
response = client.message.delete("{Message ID}")
response = client.deviceList.fetch()
You may also add filter,
response = client.deviceList.fetch("{Device ID}",
{
"status":"{Status}",
"repeated_message":"{Repeated Message}",
}
);
Eligible Filter Parameters: status, repeated_message
response = client.deviceList.repeatedMessage("{Device Id}", "{Action}")
response = client.deviceList.buttonMessageUpdate("{Device Id}",
[
{
"buttonNo": "1", "message": "This is First Button"
},
{
"buttonNo": "2", "message": "This is Second Button"
}
]
)
response = client.deviceList.buttonMessageDelete("{Device Id}",
[
"{Button No 1}", "{Button No 2}"
]
)
response = client.deviceList.newDevice("{Nickname}")
response = client.deviceShare.toMeFetch()
You may also pass filter array,
response = client.deviceShare.toMeFetch({
"case_id":"{Case ID}",
"device_id":"{Device ID}",
"owner_email":"{Email}",
"right":"{Right}"
})
Eligible Parameter: case_id, device_id, owner_email, right
response = client.deviceShare.giveUpShareeRight("{Case ID}")
response = client.deviceShare.shareTo("{Device ID}", "{Email}")
response = client.deviceShare.changeShareeRight("{Case ID}", "{Right}")
response = client.mobileAccess.fetch()
You may also pass filter array.
response = client.mobileAccess.fetch(
{
"case_id":"{Case ID}",
"deleted_from_phone":"{Deleted or Not}"
}
)
Eligible Parameter: case_id, deleted_from_phone
response = client.mobileAccess.new("{Nickname}")
response = client.mobileAccess.amendNickname("{Case ID}", "{New Nickname}")
response = client.mobileAccess.revoke("{CASE ID}")
Please refer to the API documentation
FAQs
Button Request API v1 for Python
We found that ButtonRequest-APIv1 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.