diff --git a/README.md b/README.md index 3387107..09d0942 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,8 @@ use onesignal::models::{App, FilterExpressions, Notification, Player, Segment, S ### Define the constants. You can find all the values on the dashboard page of your app. ```rust const APP_ID: &str = ""; -const APP_KEY_TOKEN: &str = ""; -const USER_KEY_TOKEN: &str = ""; +const REST_KEY_TOKEN: &str = ""; // App REST API key required for most endpoints +const ORG_KEY_TOKEN: &str = ""; // Organization key is only required for creating new apps and other top-level endpoints ``` @@ -45,8 +45,8 @@ const USER_KEY_TOKEN: &str = ""; ```rust fn create_configuration() -> Box { let mut configuration = apis::configuration::Configuration::new(); - configuration.app_key_token = Some(String::from(APP_KEY_TOKEN)); - configuration.user_key_token = Some(String::from(USER_KEY_TOKEN)); + configuration.app_key_token = Some(String::from(REST_KEY_TOKEN)); + configuration.user_key_token = Some(String::from(ORG_KEY_TOKEN)); Box::new(configuration) } ```