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
-
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
-
thumbnail
¶ Gets the thumbnail image associated with this pin
Return type: friendlypins.thumbnail.Thumbnail