thiagolocatelli / parse4j

Java Library to deal with Parse (parse.com) REST API
http://thiagolocatelli.github.io/parse4j
143 stars 117 forks source link

Add support for custom parse URL #61

Open alexargo opened 8 years ago

alexargo commented 8 years ago

Since parse announced it's plan to EOL Parse and has also released an open source API server, it would be good to add support for custom Parse URL to this library.

raytrask commented 8 years ago

No brainier.

Thanks, Ray Trask

I think better than I speak, I speak better than I write...so call me anytime.

(614) 787-4123 (mobile)

On Jan 28, 2016, at 9:56 PM, Alex Argo notifications@github.com wrote:

Since parse announced it's plan to EOL Parse and has also released an open source API server, it would be good to add support for custom Parse URL to this library.

— Reply to this email directly or view it on GitHub.

PauloxD commented 8 years ago

Can I second this request. Could I also suggest that it be used as the next release version, I believe this is 1.4 or 1.5? It just means that anyone using it as a dependency utilise it easier.

tanzeelrana commented 7 years ago

has this been updated into

<dependency> <groupId>com.github.thiagolocatelli</groupId> <artifactId>parse4j</artifactId> <version>1.4</version> </dependency>

??

abdielou commented 7 years ago

You can do this:

if(masterKey){ // As ROOT
     Parse.initialize(appId,restApiKey,serverUrl)
     Parse.initializeAsRoot(appId, masterKey)
}
else{
    Parse.initialize(appId,restApiKey,serverUrl)
}
SeloSlav commented 7 years ago

@tanzeelrana Use the latest snapshot build as your dependency, as opposed to 1.4. I also included some logging dependencies that may be missing if you get an error.

    <dependencies>
        <dependency>
            <groupId>com.github.thiagolocatelli</groupId>
            <artifactId>parse4j</artifactId>
            <version>1.5-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.5</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.6.4</version>
        </dependency>
    </dependencies>

Awesome library, but lacking some documentation... Hopefully they release 1.5 or at least update the main README soon.