An unofficial collection of APIs used in FreeJam games and mods
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1.0KB

  1. //! Robocraft APIs for the CRF and leaderboards (WIP).
  2. //! FactoryAPI is mostly complete, but many other APIs are missing.
  3. mod factory;
  4. mod factory_json;
  5. mod factory_request_builder;
  6. pub use self::factory::{FactoryAPI, FACTORY_DOMAIN};
  7. pub use self::factory_json::{FactoryInfo, FactoryRobotListInfo, RoboShopItemsInfo, FactoryRobotGetInfo};
  8. pub use self::factory_request_builder::{FactorySearchBuilder, FactoryMovementType, FactoryOrderType, FactoryWeaponType, FactoryTextSearchType};
  9. #[cfg(feature = "simple")]
  10. pub(crate) use self::factory_json::{ListPayload};
  11. mod cubes;
  12. pub use self::cubes::{Cube, Cubes};
  13. mod auth;
  14. pub use self::auth::{ITokenProvider, DefaultTokenProvider};
  15. /// Token defined in a javascript file from Freejam which never expires
  16. pub const DEFAULT_TOKEN: &str = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJQdWJsaWNJZCI6IjEyMyIsIkRpc3BsYXlOYW1lIjoiVGVzdCIsIlJvYm9jcmFmdE5hbWUiOiJGYWtlQ1JGVXNlciIsIkZsYWdzIjpbXSwiaXNzIjoiRnJlZWphbSIsInN1YiI6IldlYiIsImlhdCI6MTU0NTIyMzczMiwiZXhwIjoyNTQ1MjIzNzkyfQ.ralLmxdMK9rVKPZxGng8luRIdbTflJ4YMJcd25dKlqg";