MyanmarAPI/maepaysoh-android

Name: maepaysoh-android

Owner: Myanmar API

Description: This is the Sample Android Application & SDK Library for MaePaySoh API.

Created: 2015-08-19 08:14:09.0

Updated: 2015-10-22 09:00:53.0

Pushed: 2015-09-24 08:08:57.0

Homepage: null

Size: 1016

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

QUICK OVERVIEW

Content ??????
  1. What is this Repository?
  2. Minimum requirements.
  3. MaePaySoh API.
  4. MaePaySoh SDK Overview. :arrow_heading_down:
  5. How to use this Repository?
  6. Contributions

1. What is this Repository?

This is part of the Opensource Libraries for MaePaySoh ????????? project.

This repository is an Android Project which comprises of 2 major parts;

  1. Sample Android Application (sample-app Module) and
  2. Android SDK (maepaysohsdk Module) for MaePaySoh API

The sample-app module utilizes maepaysohsdk as a dependency.

2. Minimum Requirements

Followings are required to build this project folder;

3. MaePaySoh API

MaePaySoh API is the primary data provider for this Android Application sample-app. The SDK maepaysohsdk module is the client library and complys to MaePaySoh API specification.

API features are tested with this PostMan Collection for the development of SDK.

4. MaePaySoh SDK Overview

Followings are primary utility functions of SDK to get data from API.

  1. MaePaySohApiWrapper, this is helper-class-generator.
  2. PartyAPIHelper, wrapper class for Party API endpoints.
  3. CandidateAPIHelper, wrapper class for Candidate API endpoints.
  4. FAQAPIHelper, wrapper class for FAQ API endpoints.
  5. GeoAPIHelper, wrapper class for Geolocation endponts.
5. How to use this Repository?

The SDK in this repository can be used as dependency for your Android Application, or you can fork and transform the Sample Application to further creative ideas.

5.1 Add MaePaySoh Android SDK for your Android Project

To use the SDK as dependency for your own Android Project.

5.2 Get MaePaySoh API Key

Own API key is required to connect to Mae Pay Soh API. It is required to put into SDK to connect to API. You can get your own APK Key at MaePaySoh Website.

5.3 Setup API Wrapper

You can setup the API Wrapper as follow;

aySohApiWrapper apiWrapper = new MaePaySohApiWrapper(this);
rapper.setApiKey(API_KEY); // Put your own API Key
rapper.setFont(MaePaySohApiWrapper.FONT.unicode); // Set Unicode/Zawgyi
5.4 Use of API Helpers

APIHelpers are generated from MaePaySohApiWrapper object.

5.4.1 How to use PartyAPIHelper

Party API Helper is created as follow;

yAPIHelper partyApiHelper = apiWrapper.getPartyApiHelper();

Followings methods are available for PartyAPIHelper

5.4.2 How to use CandidateAPIHelper

Candidate API Helper is created as follow;

idateAPIHelper candidateApiHelper = apiWrapper.getCandidateAPIHelper();

Following methods are available for CandidateAPIHelper;

5.4.3 How to use FAQAPIHelper

FAQ API Helper is created as follow;

PIHelper faqApiHelper = apiWrapper.getFAQAPIHelper();

Following methods are available for FAQ API Helper.

5.4.4 How to use GeoAPIHelper

Geo API Helper is created as follow;

PIHelper geoApiHelper = apiWrapper.getGeoAPIHelper();

Following methods are available for Geo API Helper

6. Contributions

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.