我正在尝试使用php SDK连接到解析应用程序。
<?php
$app_id = '';
$rest_key = '';
$master_key = '';
use Parse\ParseClient;
ParseClient::initialize( $app_id, $rest_key, $master_key );
use Parse\ParseObject;
$testObject = ParseObject::create("TestObject");
$testObject->set("foo", "bar");
$testObject->save();
?>
更新:
错误是:
致命错误:Class&#39; Parse \ ParseClient&#39;在/ Applications / MAMP / htdocs中找不到......
答案 0 :(得分:0)
通过添加:
来修复require 'vendor/autoload.php';