parse_server_sdk 8.0.0 parse_server_sdk: ^8.0.0 copied to clipboard
The Dart SDK to connect to Parse Server. Build your apps faster with Parse Platform, the complete application stack.
import 'package:parse_server_sdk/parse_server_sdk.dart';
Future<void> main() async {
// Parse initialize
await Parse().initialize("keyApplicationId", "keyParseServerUrl",
clientKey: "keyParseClientKey",
debug: true,
liveQueryUrl: "keyLiveQueryUrl",
autoSendSessionId: true,
coreStore: CoreStoreMemoryImp());
// Set a ParseObject and save it
var dietPlan = ParseObject('DietPlan')
..set('Name', 'Ketogenic')
..set('Fat', 65);
var response = await dietPlan.save();
if (response.success) {
dietPlan = response.results?.first;
print("Response received successfully");
}
}