Yupdates Rust SDK
The Yupdates Rust SDK lets you easily use the Yupdates API from your own software and scripts.
This is hosted on GitHub. There is also a Yupdates Python SDK.
Overview
The api module provides a low-level functions that wrap calls to the HTTP+JSON API, serializing and deserializing the requests and responses.
The clients module provides an async client that is more convenient, and clients::sync provides a synchronous version of the client that hides any need to set up an async runtime.
Getting started
First, obtain an API token from the application. Navigate to "Settings" and then "API".
The examples will start with read-only operations, so you can use the general, read-only token to get started.
Create a new Rust project:
Add the dependency to Cargo.toml:
[]
= "0"
Add this to the src/main.rs file:
use YupdatesV0;
use new_sync_client;
use Error;
Set the API token environment variable (use a different value, this example will not work):
Test the connection and authentication:
Once that is working, you can make other calls. For example, to read the latest 10 items from a feed:
use YupdatesV0;
use new_sync_client;
use Error;
There are more examples in the tests and code documentation. You can see the tests on GitHub, and see the code documentation on docs.rs.
Getting help
You can create a GitHub issue on this repository for bugs and feature requests.
The fastest way to get help is to create a support ticket from the Yupdates application. Or email support@yupdates.com. Especially if you need help that is not specific to this SDK, or if you would like more hands-on setup and troubleshooting advice.
License
The SDK is distributed under the MIT license, please see LICENSE for more information.
This covers the source code and examples, but it does not cover related items like the Yupdates logo or API documentation which is not hosted here.