0

我正在向 Linkedin 发送一个 API 请求,以获取与此完全相同的职位名称和头衔:

url_jobtitle = f'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&pivot=MEMBER_JOB_TITLE&dateRange.start.day='\f'{startDate.day}&dateRange.start.month={startDate.month}&dateRange.start.year={startDate.year}' \f'&dateRange.end.day={endDate.day}&dateRange.end.month={endDate.month}&dateRange.end.year={endDate.year}' \f'&timeGranularity=ALL&campaigns[0]=urn:li:sponsoredCampaign:{cmp_id}&projection=(*,elements*(externalWebsiteConversions,adUnitClicks, companyPageClicks, landingPageClicks,textUrlClicks, actionClicks,impressions,clicks,dateRange,pivotValue~(*)))&fields=externalWebsiteConversions,dateRange,impressions,clicks,pivotValue,actionClicks,adUnitClicks,companyPageClicks,landingPageClicks,textUrlClicks'

url_jobfunction = f'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&pivot=MEMBER_JOB_FUNCTION&dateRange.start.day=' \f'{startDate.day}&dateRange.start.month={startDate.month}&dateRange.start.year={startDate.year}' \f'&dateRange.end.day={endDate.day}&dateRange.end.month={endDate.month}&dateRange.end.year={endDate.year}' \f'&timeGranularity=ALL&campaigns[0]=urn:li:sponsoredCampaign:{cmp_id}&projection=(*,elements*(externalWebsiteConversions,adUnitClicks, companyPageClicks, landingPageClicks,textUrlClicks, actionClicks,impressions,clicks,dateRange,pivotValue~(*)))&fields=externalWebsiteConversions,dateRange,impressions,clicks,pivotValue,actionClicks,adUnitClicks,companyPageClicks,landingPageClicks,textUrlClicks'

答案是英文('en_US'

'pivotValue~': {'function': 'urn:li:function:4', 'name': {'localized': {'en_US': 'Co-Founder'}}

'pivotValue~': {'name': {'localized': {'en_US': 'Accounting'}}, 'id': 1, '$URN': 'urn:li:function:1'}

如何发送此请求以获取葡萄牙语信息?( 'pt_BR')

4

0 回答 0