API setting: API as the user 'PythonAPI', but the supplied API key doesn't match our records

import plotly as py
py.tools.set_credentials_file(username=‘RamdayalSingh’,api_key=‘what should be given?’)
import plotly.plotly as py
py.iplot(fig)

Traceback (most recent call last):

File “”, line 1, in
py.iplot(fig)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\plotly\plotly.py”, line 134, in iplot
url = plot(figure_or_data, **plot_options)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\plotly\plotly.py”, line 227, in plot
response = v1.clientresp(data, **plot_options)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\api\v1\clientresp.py”, line 35, in clientresp
response = request(‘post’, url, data=payload)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\api\v1\utils.py”, line 86, in request
validate_response(response)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\api\v1\utils.py”, line 38, in validate_response
raise exceptions.PlotlyRequestError(message, status_code, content)

PlotlyRequestError: Aw, snap! You tried to use our API as the user ‘PythonAPI’, but the supplied API key doesn’t match our records. You can view your API key at plot.ly/settings.

You’re most likely getting this message because your local credentials file isn’t synced with the Plotly server you’re communicating with.

Go to plot.ly//getting-started (e.g., plot.ly/python/getting-started) for more information.

Make sure that you’re logged in as PythonAPI.

Need help? Please try searching Plotly’s Stack Overflow channel.

How can I solve this error?

You can log into Plotly and find your API key here: https://plot.ly/settings/api
You must select the Regenerate Key button to display the key in the box.