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

Function main

Android/APIExample-Audio/ci.env.py:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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