read protected json file from https server [closed]

I need to read json file from https server. Json file can only be read after logging into the server. And this server login with 3 parameter username , password and client id.

I tried curl to login but it’s always saying “please login”.

What procedure I need to follow?