Skip to content

touchlocal/centralindex-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

186 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

centralindex-java

Introduction

The Centralindex Java module allows developers to start using the Central Index API with minimal code. The Central Index is a global data exchange, with a simple REST/JSON api.

What do I need before I start?

Hello World

Take the Centralindex.java from this repository and add the following code to the bottom:

public static void main(String[] args) throws Exception {
  try {
			  
	  Centralindex ci = new Centralindex("<insert API Key here>",false);			  
	  String retval = "";
			  
	  retval = ci.getEntity("379236608286720");
			  
	  System.out.println("Response content " + retval);
			  
	 } 
	 finally {
			  
   } 
}

Compile the code

  javac -cp "./lib/*" Centralindex.java

and run the compiled Java code:

  java -cp '.:lib/*' Centralindex

Function reference

See the API Docs for more information.

About

Java library for Central Index, the world's local data exchange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages