Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.14.0] - TBD
## [0.15.0] - TBD

### Added
- Initial release of Appwrite Rust SDK
Expand Down Expand Up @@ -1453,4 +1453,4 @@ The Webhooks service allows you to manage your project webhooks.
- File upload examples
- Query builder documentation

[0.14.0]: https://github.com/appwrite/sdk-for-rust/releases/tag/0.14.0
[0.15.0]: https://github.com/appwrite/sdk-for-rust/releases/tag/0.15.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "appwrite"
version = "0.14.0"
version = "0.15.0"
edition = "2021"
rust-version = "1.83"
authors = ["appwrite"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
appwrite = "0.14.0"
appwrite = "0.15.0"
tokio = { version = "1.48", features = ["full"] }
```

Expand Down
3 changes: 2 additions & 1 deletion docs/examples/account/create-o-auth-2-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
appwrite::enums::OAuthProvider::Amazon,
Some("https://example.com"), // optional
Some("https://example.com"), // optional
Some(vec![]) // optional
Some(vec![]), // optional
Some("<STATE>") // optional
).await?;

let _ = result;
Expand Down
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Client {
headers.insert(
"user-agent",
format!(
"AppwriteRustSDK/0.14.0 ({}; {})",
"AppwriteRustSDK/0.15.0 ({}; {})",
std::env::consts::OS,
std::env::consts::ARCH
)
Expand All @@ -105,7 +105,7 @@ impl Client {
headers.insert("x-sdk-name", "Rust".parse().unwrap());
headers.insert("x-sdk-platform", "server".parse().unwrap());
headers.insert("x-sdk-language", "rust".parse().unwrap());
headers.insert("x-sdk-version", "0.14.0".parse().unwrap());
headers.insert("x-sdk-version", "0.15.0".parse().unwrap());

let config = Config {
endpoint: "https://cloud.appwrite.io/v1".to_string(),
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//!
//! ```toml
//! [dependencies]
//! appwrite = "0.14.0"
//! appwrite = "0.15.0"
//! ```
//!
//! ## Usage
Expand Down Expand Up @@ -51,7 +51,7 @@ pub use input_file::InputFile;
pub type Result<T> = std::result::Result<T, AppwriteError>;

/// SDK version
pub const VERSION: &str = "0.14.0";
pub const VERSION: &str = "0.15.0";

/// SDK name
pub const SDK_NAME: &str = "Rust";
Expand Down
4 changes: 4 additions & 0 deletions src/services/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ impl Account {
success: Option<&str>,
failure: Option<&str>,
scopes: Option<Vec<String>>,
state: Option<&str>,
) -> crate::error::Result<String> {
let mut params = HashMap::new();
if let Some(value) = success {
Expand All @@ -980,6 +981,9 @@ impl Account {
json!(value.into_iter().map(|s| s.into()).collect::<Vec<String>>()),
);
}
if let Some(value) = state {
params.insert("state".to_string(), json!(value));
}
let mut api_headers = HashMap::new();
api_headers.insert("accept".to_string(), "text/html".to_string());

Expand Down
Loading