Snapchat API auth导致禁令

时间:2014-04-21 18:11:23

标签: php api

我正在尝试从PHP API here发送Snapchat。

正如您所看到的,它经常向服务器验证

<?php

// Log in:
$snapchat = new Snapchat('username', 'password');

// Upload a snap and send it to me for 8 seconds:
$id = $snapchat->upload(
Snapchat::MEDIA_IMAGE,
file_get_contents('/home/jorgen/whatever.jpg')
);
$snapchat->send($id, array('jorgenphi'), 8);

如何只进行一次身份验证然后将其发送到用户名的ARRAY?

1 个答案:

答案 0 :(得分:0)

看来你可以通过在发送功能的第二个参数(check here)中向数组添加更多元素来发送给多个人。

尝试类似:

$snapchat->send($id, array('jorgenphi', 'anotheruser', 'thirduser'), 8);