我正在尝试从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);怎么可能只进行一次身份验证,然后将snapchat发送给一组用户名?
发布于 2014-04-22 02:18:58
似乎可以通过在发送函数(check here)的第二个参数中向数组中添加更多元素来发送给多个人。
尝试如下所示:
$snapchat->send($id, array('jorgenphi', 'anotheruser', 'thirduser'), 8);https://stackoverflow.com/questions/23203126
复制相似问题