Perfecto
:ok_hand: Http Connection calls made easy. Simple wrapper to AsyncTask with Error Handling.
Install / Use
/learn @developer-shivam/PerfectoREADME
#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
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
