Global shared
The code in every language
Each example is the inside of main, written in every language API Maker runs : pick yours in the tabs, and every page shows it from then on. The types a call takes (GetAll, DeepItem…) are those of am : from am import GetAll in Python, use am::GetAll; in Rust, import am.GetAll; in Java and Kotlin ; PHP and C# have them without an import, Go names them am.GetAll.
Shared data globally¶
g.shared is used to share data between post-hooks, pre-hooks, code, and APIs.
- If the user set a shared variable from the one API response.
- User can get that shared variables value in another API.