public class ApiKeyUtils extends Object
| Constructor and Description |
|---|
ApiKeyUtils() |
| Modifier and Type | Method and Description |
|---|---|
LimitResponse |
checkLimit(String wskey,
String url,
eu.europeana.corelib.db.entity.enums.RecordType recordType,
String profile)
Check the number requests made to the API in the last (rolling) 24 hours.
|
public LimitResponse checkLimit(String wskey, String url, eu.europeana.corelib.db.entity.enums.RecordType recordType, String profile) throws ApiLimitException
NOTE: This functionality has currently been disabled (ticket #1742); this method now always returns the user's apikey and a request number of '999' (unless it's a unregistered user).
wskey - The user's API web service keyurl - The requested URLrecordType - The type of record, defined by RecordTypeprofile - The profile usedLimitResponse consisting of the apiKey and current request numberApiLimitException - ApiLimitException if an unregistered or unauthorised key is provided, or if the
daily limit has been reachedCopyright © 2019 Europeana Foundation. All rights reserved.