reyzeal / turnitin
Turnitin Web API
v1.0.8
2020-06-18 08:40 UTC
Requires
- guzzlehttp/guzzle: >=6.3
- vlucas/phpdotenv: >=3.4
This package is auto-updated.
Last update: 2024-09-19 22:46:35 UTC
README
Turnitin 抄袭检查 Web 抓取工具(PHP 实现)
初始化
use reyzeal\Turnitin;
$x = new Turnitin('email@something','pwd','path_to_store_session');
获取课堂
// all
$x->classRoom()
// single class
$x->classRoom()->room() // or
$x->classRoom()->room(0) // by index 0, default = 0
$room = $x->classRoom()->room(0)
$room->name
$room->status
$room->start
$room->end
$room->link
在课堂中获取作业
$room = $x->classRoom()->room(0)
$assignment = $room -> assignment(1)
$assignment -> title
$assignment -> start
$assignment -> end
$assignment -> link
获取一个作业中的所有论文/文档
$assignment = $room -> assignment(1)
$documents = $assignment -> allDocuments()
上传文档
$assignment -> upload(path_to_file, author)