我试图弄清楚 SNAPI 是如何工作的(php 中 snapchat 的非官方 api)
所以这里是项目的github链接。
https://github.com/mgp25/SC-API
这里说。
Use registerTool.php https://github.com/mgp25/Snap-API/blob/master/examples/registerTool.php
Note: This is a CLI tool, not for webservers.
It will ask you for the account data:
Username: SnapTest
Password: thisIsMyPassword
Email: snaptest@myemail.com
Birthday (yyyy-mm-dd): 1970-01-01
我可以使用哪个 CLI 工具输入我自己的注册凭据?
因为这个php文件有这个代码
<?php
include_once("../src/snapchat.php");
echo "\n\nUsername: ";
$username = trim(fgets(STDIN));
echo "\nPassword: ";
$password = trim(fgets(STDIN));
echo "\nEmail: ";
$email = trim(fgets(STDIN));
echo "\nBirthday (yyyy-mm-dd): ";
$birthday = trim(fgets(STDIN));
echo "\nGmail address: ";
$gMail = trim(fgets(STDIN));
echo "\nGmail password: ";
$gPasswd = trim(fgets(STDIN));
echo "\nCasper key: ";
$casperKey = trim(fgets(STDIN));
echo "\nCasper secret: ";
$casperSecret = trim(fgets(STDIN));
$snapchat = new Snapchat($username, $gMail, $gPasswd, $casperKey, $casperSecret, true);
我对 PHP 和 API 完全陌生,我只是想弄清楚它是如何工作的。感谢您的帮助。