java.lang.Object
org.gcube.social_networking.social_networking_client_library.BaseClient
org.gcube.social_networking.social_networking_client_library.HashTagClient

public class HashTagClient extends BaseClient
HashTags client.
Author:
Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it), Ahmed Ibrahim at ISTI-CNR (ahmed.ibrahim@isti.cnr.it)
  • Constructor Details

  • Method Details

    • getHashtagsCount

      public Map<String,Integer> getHashtagsCount()
      Get hashtags and their count in the context bound to the auth token.

      Endpoint: GET 2/hashtags/get-hashtags-and-occurrences

      Identity 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

      public Map<String,Integer> getHashtagsCount(Long since)
      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 since is 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

      public Map<String,Integer> getHashtagsCount(long since)
      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