July 2017
Beginner to intermediate
312 pages
7h 27m
English
In order to connect to the Pinterest API we follow the same logic as in the previous examples with the following steps:
import requests
access_token = 'YOUR_ACCESS_TOKEN'
params = {'access_token': access_token, 'fields' : 'counts, bio, first_name, last_name'}
def pinterest(url, params): response = requests.get(url = url, params = params) return response.json()
me = pinterest(url = 'https://api.pinterest.com/v1/me', params = {'access_token': access_token}) followers = pinterest(url ...Read now
Unlock full access