Perfecto

Additional

Language
Java
Version
1.0 (Nov 3, 2016)
Created
Aug 4, 2016
Updated
Nov 3, 2016 (Retired)
Owner
Shivam Satija (developer-shivam)
Contributors
Shivam Satija (developer-shivam)
Pomis
2
Activity
Badge
Generate
Download
Source code
APK file

Advertising

#perfecto - Network request with ease.

Use Case for "GET" Request

Perfecto.with(MainActivity.this)
 .fromUrl("http://www.google.com")
 .ofTypeGet()
 .connect(new OnNetworkRequest() {

        @Override
        public void onStart() {

        }

        @Override
        public void onSuccess(String response) {
            Log.d("Response", response);
        }

        @Override
        public void onFailure(int responseCode, String responseMessage, String errorStream) {
            Log.d("Response code", String.valueOf(responseCode));
            Log.d("Response message", responseMessage);
            Log.d("Error stream", errorStream);
        }
 });

Integration

Add these lines in build.gradle at project leve

repositories {
 jcenter()
 maven { url "https://jitpack.io" }
}

Add these lines in build.gradle at app level

dependencies {
    compile 'com.github.developer-shivam:perfecto:1.0.0'
}

License

Copyright (c) 2016 Shivam Satija

Licensed under the Apache License, Version 2.0