Class HashTagClient
java.lang.Object
org.gcube.social_networking.social_networking_client_library.BaseClient
org.gcube.social_networking.social_networking_client_library.HashTagClient
HashTags client.
- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it), Ahmed Ibrahim at ISTI-CNR (ahmed.ibrahim@isti.cnr.it)
-
Field Summary
Fields inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
SG3_BRIDGE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet hashtags and their count in the context bound to the auth token.getHashtagsCount(long since) Get hashtags and their count in the context bound to the auth token, filtered by a reference timestamp in milliseconds.getHashtagsCount(Long since) Get hashtags and their count in the context bound to the auth token, optionally filtered by a reference timestamp in milliseconds.Methods inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
getServiceEndpoint
-
Constructor Details
-
HashTagClient
- Throws:
Exception
-
-
Method Details
-
getHashtagsCount
Get hashtags and their count in the context bound to the auth token.Endpoint:
GET 2/hashtags/get-hashtags-and-occurrencesIdentity semantics: acts as the token's caller (the user owning the token in context). Requires a user token in a VRE context.
- Returns:
- a map of type hashtag -> number
-
getHashtagsCount
Get hashtags and their count in the context bound to the auth token, optionally filtered by a reference timestamp in milliseconds.Endpoint:
GET 2/hashtags/get-hashtags-and-occurrences?since={since}Identity semantics: acts as the token's caller (the user owning the token in context). Requires a user token in a VRE context. If
sinceis provided, hashtags not used since that timestamp are excluded.- Parameters:
since- optional reference timestamp in milliseconds; if null, all hashtags are returned- Returns:
- a map of type hashtag -> occurrences count
-
getHashtagsCount
Get hashtags and their count in the context bound to the auth token, filtered by a reference timestamp in milliseconds.Endpoint:
GET 2/hashtags/get-hashtags-and-occurrences?since={since}- Parameters:
since- reference timestamp in milliseconds (non-negative)- Returns:
- a map of type hashtag -> occurrences count
-