Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

poe.com api patch solved #38

Closed
xtekky opened this issue Apr 15, 2023 · 1 comment
Closed

poe.com api patch solved #38

xtekky opened this issue Apr 15, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@xtekky
Copy link
Contributor

xtekky commented Apr 15, 2023

@ading2210

from json import dumps
from hashlib import md5

a = {
    "queryName":"AnnotateWithIdsProviderQuery",
    "variables":{},
    "query":"query AnnotateWithIdsProviderQuery {\n  viewer {\n    canAnnotateWithIds: booleanGate(gateName: \"annotate_with_ids\")\n    id\n  }\n}\n"
}

form_key = '0eed5c7455f62fe3dbec3e300de99c10'
global_key      = 'WpuLMiXEKKE98j56k'

base_string = dumps(a, separators = (',', ':')) + form_key + global_key
print(md5(base_string.encode()).hexdigest()) 

do not have time to make a pull request

@xtekky xtekky changed the title poe.com api path solved poe.com api patch solved Apr 15, 2023
@ading2210 ading2210 added the duplicate This issue or pull request already exists label Apr 15, 2023
@ading2210
Copy link
Owner

Closing as this is duplicated by #39.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants