Regenerate Authentication Code
Explore the process of regenerating your FreshBooks API authentication code with Flask. This lesson guides you through running a Flask server, accessing FreshBooks authentication settings, and retrieving the new auth code for secure API integration.
We'll cover the following...
We'll cover the following...
Let's execute the code widgets below to regenerate AUTH_CODE.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="10">
</head>
<body>
<h1>Welcome to Freshbooks!</h1>
<p style="font-size:25px" id="token">
{% if code is not none %}
Your code is <strong>{{code}}</strong>.
{% else %}
Your code will be displayed here.
{% endif %}
</p>
</body>
</html>
The Flask server application
We click the above “Run” button, which starts the ...