I need to create a HubSpot App for getting the user contact list data. When User setup app in his/her HubSpot account after that we will get permission to access contract list data and we will add some other fields also.
In relation to the Contacts List aspect of your query, Lists are collections of contact objects in HubSpot, and interacting with them programmatically involves using the Contact Lists API (see here). This can be done with only the contacts scope.
1. Are you looking to understand which user has installed the integration or are you looking to know which Portals currently have the integration installed?
In both scenarios, we do not currently provide the means of detailing whom or where the portal has been installed.
2. The auth code will expire 10 minutes after it’s generated, so you’ll want to make sure that you’re generating the refresh token and initial access token before that (though generally you should be doing that as soon as your app gets that code).