Need help in Spreadsheet

How do i get credentials.json ? I tried json from Account service and Oauth. But not working.

Can anyone guide me how do i get to use spreadsheet.