friendlypins.pin module

Primitives for operating on Pinterest pins

class friendlypins.pin.Pin(data, rest_io)[source]

Bases: object

Abstraction around a Pinterest pin

Parameters:
  • data (dict) – Raw Pinterest API data describing a pin
  • rest_io (friendlypins.utils.rest_io.RestIO) – reference to the Pinterest REST API
delete()[source]

Removes this pin from it’s respective board

Source URL containing the original data for the pin

Return type:str
media_type

Gets descriptor for the type of data stored in the pin’s link

Returns None if the type of data associated with the Pin is unknown

Return type:str
note

Descriptive text associated with pin

Return type:str
thumbnail

Gets the thumbnail image associated with this pin

Return type:friendlypins.thumbnail.Thumbnail
unique_id

The unique identifier associated with this pin

Return type:int
url

Web address for the UI associated with the pin

Return type:str