Not able to tweet link using twitter v1.1 api

I am trying to tweet url or link using twitter api via statuses/update post request. Everytime I make an api call it gives me an error 401: Authorization required but I can easliy tweet a text without having an issue. Please anyone help me with this issue.Screenshot from 2021-01-20 18-37-39