1 | <?php |
||
7 | class PinnerHelper |
||
8 | { |
||
9 | /** |
||
10 | * Creates Pinterest API request to get user info according to |
||
11 | * username, API url and bookmarks for pagination |
||
12 | * |
||
13 | * @param string $username |
||
14 | * @param string $sourceUrl |
||
15 | * @param array $bookmarks |
||
16 | * @return array |
||
17 | */ |
||
18 | public static function createUserDataRequest($username, $sourceUrl, $bookmarks) |
||
28 | |||
29 | /** |
||
30 | * Parses Pinterest API response with pinner name |
||
31 | * |
||
32 | * @param $res |
||
33 | * @return null |
||
34 | */ |
||
35 | public static function parseAccountNameResponse($res) |
||
43 | |||
44 | /** |
||
45 | * Creates Pinterest API request to login |
||
46 | * |
||
47 | * @param string $username |
||
48 | * @param string $password |
||
49 | * @return array |
||
50 | */ |
||
51 | public static function createLoginRequest($username, $password) |
||
61 | } |
||
62 |