watchaa | 2022-04-27 13:29:13 UTC | #1
i use this code (code example >> https://developer.genesys.cloud/authorization/platform-auth/guides/oauth-implicit-guide)
class SampleServer(BaseHTTPRequestHandler):
def do_GET(self):
# Index page
if self.path == "/":
self.send_response(200)
self.send_header("Content-type", "text/html")
self.end_headers()
with open("implicit.html", "rb") as htmlFile:
self.wfile.write(htmlFile.read())
# API endpoint to verify token /token/<token-here>
when i run i get error : with open("implicit.html", "rb") as htmlFile: FileNotFoundError: [Errno 2] No such file or directory: 'implicit.html'
what should i do.
Jerome.Saint-Marc | 2022-04-27 13:37:20 UTC | #2
Hello,
The sample also includes an html file in the project. See here
Regards,
system | 2022-05-28 13:37:50 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 14484