Skip to main content

Intro API

1. What is an API ?

  • API stands for Application Programming Interface. An API specifies a set of functions or routines that accomplish a specific task or are allowed to interact with a specific software component.
2. In what formats are API results delivered?

  • The API generates the response in the following 2 formats:
    • 1. JSON: JavaScript Object Notation (Recommended)
    • 2. XML: Extensible Markup Language
3. List of API Feeds and their URL.
  • API Search Query based on Keywords
  • Generic Product Feeds API
4. What are the expected response codes from API?

    Error Code             Description
      400 Bad Request    Invalid input parameters
        401 Unauthorized    API Token or Affiliate Tracking ID invalid
          403 Forbidden            Tampered URL - The URL contents are modified from the originally returned value
            410 Gone                    URL expired
              500 Internal Server Error Error at API system


              Popular posts from this blog

              Android Basic Tutorial : Get the Current Date and Time

              Here’s a code snipped to get the current date and/or time. This snipped uses the Calendar object (java.util.Calendar) which is a useful class when working with dates.






              //Get a calendar object for the current date and time Calendar CurrentDateTime = Calendar.getInstance();
              //Example: Get current day of the month

              Android Basic Tutorial : Circular Seek Bar

              public class Welcome extends Activity {     CircularSeekBar circularSeekbar;
                  @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         circularSeekbar = new CircularSeekBar(this);         circularSeekbar.setMaxProgress(100);         circularSeekbar.setProgress(100);         setContentView(circularSeekbar);         circularSeekbar.invalidate();
                      circularSeekbar.setSeekBarChangeListener(new OnSeekChangeListener() {
                          @Override             public void onProgressChange(CircularSeekBar view, int newProgress) {                 Log.d("Welcome", "Progress:" + view.getProgress() + "/" + view.getMaxProgress());             }         });
                  } }