com.aetna.api.goodrx
Class GoodRXAPI

java.lang.Object
  extended by com.aetna.api.goodrx.GoodRXAPI

public class GoodRXAPI
extends java.lang.Object

GoodRX application program interface java endpoitns.


Constructor Summary
GoodRXAPI(java.lang.String apiKey)
           
 
Method Summary
 java.lang.String getApiKey()
          Retrieve current api key that was specified
 java.util.List<DrugPrices> listDrugComparePrices(java.util.Map<java.lang.String,java.lang.String> searchParameters)
          Retrieves the available price for a prescription medication
 java.util.List<DrugPrices> listDrugLowestPrices(java.util.Map<java.lang.String,java.lang.String> searchParameter)
          Retrieves the lowest available price for a prescription medication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoodRXAPI

public GoodRXAPI(java.lang.String apiKey)
Parameters:
apiKey - the API key
Method Detail

getApiKey

public java.lang.String getApiKey()
Retrieve current api key that was specified

Returns:
apiKey

listDrugLowestPrices

public java.util.List<DrugPrices> listDrugLowestPrices(java.util.Map<java.lang.String,java.lang.String> searchParameter)
                                                throws InvalidCredentialException,
                                                       java.io.IOException,
                                                       java.net.MalformedURLException
Retrieves the lowest available price for a prescription medication

Parameters:
searchParameter - the drug's parameters
Returns:
List
Throws:
InvalidCredentialException
java.io.IOException
java.net.MalformedURLException

listDrugComparePrices

public java.util.List<DrugPrices> listDrugComparePrices(java.util.Map<java.lang.String,java.lang.String> searchParameters)
                                                 throws InvalidCredentialException,
                                                        java.io.IOException,
                                                        java.net.MalformedURLException
Retrieves the available price for a prescription medication

Parameters:
searchParameter - the drug's parameters
Returns:
List
Throws:
InvalidCredentialException
java.io.IOException
java.net.MalformedURLException