Git Product home page Git Product logo

parse.com's Introduction

PHP parse.com API library

More on the parse.com api here: https://www.parse.com/docs/rest

V1 is still available

Availalbe here: https://github.com/apotropaic/parse.com-php-library/blob/parse.com-php-library_v1/README.md

I wrote tests not for testing sake, but really just to see how I liked how the library worked!

Feedback Wanted

This is a work in progress and is a drasticly different then v1 of this library.

Let me know what you think and suggestions and ideas

SETUP

Instructions after cloning this repository you have to create a file in the root of it called parseConfig.php

sample of parseConfig.php

Below is what you want parseConfig.php to look like, just fill in your IDs and KEYs to get started.

<?php

class parseConfig{
	
	const APPID = '';
	const MASTERKEY = '';
	const RESTKEY = '';
	const PARSEURL = 'https://api.parse.com/1/';
}

?>

EXAMPLE

sample of upload.php

<?php 
    //This example is a sample video upload stored in parse
    
    $parse = new parseObject('Videos');
    $parse->title = $data['upload_data']['title'];
    $parse->description = $data['upload_data']['description'];
    $parse->tags = $data['upload_data']['tags'];
    
    //create new geo
    $geo = new parseGeoPoint($data['upload_data']['lat'],$data['upload_data']['lng']);
    $parse->location = $geo->location;
    
    //use pointer to other class
    $parse->userid = array("__type" => "Pointer", "className" => "_User", "objectId" => $data['upload_data']['userid']);
    
    //create acl
    $parse->ACL = array("*" => array("write" => true, "read" => true));
    $r = $parse->save();
    ?>

parse.com's People

Contributors

andrewscofield avatar timemachine3030 avatar desarrolla2 avatar martindavis avatar kasperpihl avatar warnew avatar alexargo avatar jontonsoup avatar ericoe avatar davisjp1822 avatar jfbloom22 avatar hoseking avatar daspecster avatar theboardsaredown avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

aminzai jfbloom22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.