Keep the mind the next:
Do you want to secure your games? Secure your APIs using GameMaker and Json Web Token (JWT). Avoid third parties of using your private game dedicated APIs and authorize and authenticate that your game is the only one that can access to your services.
Don't waste time coding again and again this solution and re use this extension in many projects you like!
Functions
DGS_JWT_Init(base_url)
DGS_JWT_GetToken_Request(endpoint,username,password)
DGS_JWT_GetToken_Result
DGS_JWT_ResetToken()
DGS_JWT_TestToken_Request()
DGS_JWT_TestToken_Result()
The full extended documentation is being created and it will be as Included File
End User Licence Agreement (EULA).