/XCodebase

This is an easy & simple API for storing & fetching data from online database (open-source)

Primary LanguageJava

Project frozen Project unmaintained

XCodebase ~ an android api to save variables online.

This is an easy-to-use android api by which you can save & retrive data from an open-source database. just one word i.e getX() & saveX() (where X is type of variable) respectively for retriving & saving. No money, No time waste, No knowledge ,No Account Recquired. Just impliment & use.

Implimentation

Add maven to root build.gradle

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

To your module build.gradle

dependencies {
            implementation 'com.github.ErrorxCode:XCodebase:1.0'
            implementation 'com.github.ErrorxCode:OTP-Verification-Api:2.5.0'  // optional, implement if you want to use email verification
}

See this library for more information regarding Email Verification.

Pros

  • Easy, simple & lightweight
  • No money, No time waste, No knowledge, No Account Recquired.
  • Best for simple CRUD operations & small apps.
  • Stores data in key-value pair

Cons

  • Not for complex querying or sorting data.
  • Limitation : Database Storage 0.25 GB
  • Limitation : Total Requests/month 10 K
  • The usage of limitation is counted for all

CRUD operations

Callback

OnXCodebaseResponse response =  new OnXCodebaseResponse(){
            @Override
            public void onSuccessful(@Nullable Object object) {
                // This object contains variable of the 'X' type that you have requested.
		// You can get the value by using parseX(object); method
            }

            @Override
            public void onFailed(XCodeException e) {
                // e contain the cause of exception, understand it & try again.
                e.printStackTrace();
            }
        };

Creating or Storing data:

saveX(String id,X value,response);

Reading or fetching data:

X var = getX(String id,response);

Updating or modifing data:

update(String id,Object value,response);

Deleting or removing data:

delete(String id,response);

Nomenclature :-

  • *X : Data type , anyone of String,int or boolean.
  • *id : The unique id of the variable by which it is being associated.
  • *response : The callback which is invoked when performing any CRUD operation. You may pass null if you don't want to implement this.
  • *value : The value of 'X' variable to update or to save.

Support us

If you like my hard work, please give this repo a star 🌟 & Nothing else. Also check my other repos. Thank you !

Join our telegram Subscribe my youtube