public interface ZoneAccessService
Typical login sequence:
Modifier and Type | Interface and Description |
---|---|
static class |
ZoneAccessService.GetMasterAndServiceTicketsRequest |
static class |
ZoneAccessService.GetMasterAndServiceTicketsResponse |
static class |
ZoneAccessService.StatusCodeResult
A status code indicating the result of the requested operation.
|
static class |
ZoneAccessService.XMLBlobResult
A blob of XML code, accompanied by a status code.
|
Modifier and Type | Method and Description |
---|---|
ZoneAccessService.StatusCodeResult |
ActivateProductKey(String gameID,
String masterTicket,
String strDigitalPid)
Register a product key.
|
ZoneAccessService.XMLBlobResult |
GetCDKeyTicket(String gameID,
String serviceID,
String masterTicket,
String strDigitalPid)
Get a CDKey Ticket
|
ZoneAccessService.XMLBlobResult |
GetConfig(String gameID)
Return configuration details about a game title.
|
ZoneAccessService.GetMasterAndServiceTicketsResponse |
GetMasterAndServiceTickets(ZoneAccessService.GetMasterAndServiceTicketsRequest request)
Get A Master Ticket and Multiple Service Tickets (0-N).
|
ZoneAccessService.XMLBlobResult |
GetMasterTicket(String gameID)
Get a master ticket.
|
ZoneAccessService.XMLBlobResult |
GetServiceTicket(String gameID,
String serviceID,
String masterTicket)
Get a service ticket.
|
ZoneAccessService.StatusCodeResult |
RegisterNickname(String gameID,
String masterTicket,
String nickname)
Get a nickname.
|
ZoneAccessService.XMLBlobResult |
RegisterPassportAccount(String gameID,
String signInName,
String password,
String secretQuestion,
String secretAnswer,
String country,
String region,
String postalCode,
String birthDate)
Begin Create a new passport account.
|
ZoneAccessService.StatusCodeResult |
VerifyTicket(String strTicket,
String strChallenge,
String strHash,
String serviceID)
Verifies that a ticket is valid.
|
ZoneAccessService.GetMasterAndServiceTicketsResponse GetMasterAndServiceTickets(ZoneAccessService.GetMasterAndServiceTicketsRequest request)
ZoneAccessService.XMLBlobResult GetConfig(String gameID)
gameID
- Either AOM or AOMX.ZoneAccessService.StatusCodeResult RegisterNickname(String gameID, String masterTicket, String nickname)
gameID
- Either AOM or AOMX.masterTicket
- The master ticket received in a previous call.nickname
- The nickname you wish to register.ZoneAccessService.XMLBlobResult GetMasterTicket(String gameID)
gameID
- Either AOM or AOMX.ZoneAccessService.XMLBlobResult GetServiceTicket(String gameID, String serviceID, String masterTicket)
gameID
- Either AOM or AOMX.serviceID
- Either LegacyAuth for use with AccountService, or Stats for use with the StatsServer.masterTicket
- The master ticket received in a previous call.ZoneAccessService.StatusCodeResult VerifyTicket(String strTicket, String strChallenge, String strHash, String serviceID)
strTicket
- The XML code of the Ticket to verify.strChallenge
- Base64 encoding of a random byte[24].strHash
- An MD5 hash calculated by the get_Signature(challenge, sessionKey) function in zoneaccessapi.dll.
I don't know the exact input of the hash function, but assembly code suggests just two (base64?) strings.serviceID
- The serviceID of the Ticket to verify: Master | CDKey | LegacyAuth | StatsZoneAccessService.StatusCodeResult ActivateProductKey(String gameID, String masterTicket, String strDigitalPid)
gameID
- Either AOM or AOMX.masterTicket
- The master ticket received in a previous call.strDigitalPid
- base64(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Age of Mythology[ Expansion Pack]\1.0\DigitalProductID)ZoneAccessService.XMLBlobResult GetCDKeyTicket(String gameID, String serviceID, String masterTicket, String strDigitalPid)
gameID
- Either AOM or AOMX.serviceID
- Always "CDKey"masterTicket
- The master ticket received in a previous call.strDigitalPid
- base64(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Age of Mythology[ Expansion Pack]\1.0\DigitalProductID)ZoneAccessService.XMLBlobResult RegisterPassportAccount(String gameID, String signInName, String password, String secretQuestion, String secretAnswer, String country, String region, String postalCode, String birthDate)
gameID
- Either AOM or AOMX.signInName
- The name of the new account.password
- The new password.secretQuestion
- The secret question in case you forget your password.secretAnswer
- The answer to the secret question above.country
- Optional.region
- Optional.postalCode
- Optional.birthDate
- Optional.