MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / main

Function main

Android/APIExample/ci.env.py:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import os
5
6def main():
7 appId = ""
8 if "AGORA_APP_ID" in os.environ:
9 appId = os.environ["AGORA_APP_ID"]
10 token = ""
11
12 f = open("./app/src/main/res/values/string_configs.xml", 'r+')
13 content = f.read()
14 contentNew = re.sub(r'YOUR APP ID', appId, content)
15 contentNew = re.sub(r'YOUR ACCESS TOKEN', token, contentNew)
16 f.seek(0)
17 f.write(contentNew)
18 f.truncate()
19
20
21if __name__ == "__main__":

Callers 1

ci.env.pyFile · 0.70

Calls 3

seekMethod · 0.80
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected