get-influencers.asciidoc 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --
  2. :api: get-influencers
  3. :request: GetInfluencersRequest
  4. :response: GetInfluencersResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get influencers API
  8. Retrieves one or more influencer results.
  9. It accepts a +{request}+ object and responds with a +{response}+ object.
  10. [id="{upid}-{api}-request"]
  11. ==== Get influencers request
  12. A +{request}+ object gets created with an existing non-null `jobId`.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> Constructing a new request referencing an existing `jobId`.
  18. ==== Optional arguments
  19. The following arguments are optional:
  20. ["source","java",subs="attributes,callouts,macros"]
  21. --------------------------------------------------
  22. include-tagged::{doc-tests-file}[{api}-desc]
  23. --------------------------------------------------
  24. <1> If `true`, the influencers are sorted in descending order. Defaults to `false`.
  25. ["source","java",subs="attributes,callouts,macros"]
  26. --------------------------------------------------
  27. include-tagged::{doc-tests-file}[{api}-end]
  28. --------------------------------------------------
  29. <1> Influencers with timestamps earlier than this time will be returned.
  30. ["source","java",subs="attributes,callouts,macros"]
  31. --------------------------------------------------
  32. include-tagged::{doc-tests-file}[{api}-exclude-interim]
  33. --------------------------------------------------
  34. <1> If `true`, interim results will be excluded. Defaults to `false`.
  35. ["source","java",subs="attributes,callouts,macros"]
  36. --------------------------------------------------
  37. include-tagged::{doc-tests-file}[{api}-influencer-score]
  38. --------------------------------------------------
  39. <1> Influencers with `influencer_score` greater than or equal to this value will
  40. be returned.
  41. ["source","java",subs="attributes,callouts,macros"]
  42. --------------------------------------------------
  43. include-tagged::{doc-tests-file}[{api}-page]
  44. --------------------------------------------------
  45. <1> The page parameters `from` and `size`. `from` specifies the number of
  46. influencers to skip. `size` specifies the maximum number of influencers to get.
  47. Defaults to `0` and `100` respectively.
  48. ["source","java",subs="attributes,callouts,macros"]
  49. --------------------------------------------------
  50. include-tagged::{doc-tests-file}[{api}-sort]
  51. --------------------------------------------------
  52. <1> The field to sort influencers on. Defaults to `influencer_score`.
  53. ["source","java",subs="attributes,callouts,macros"]
  54. --------------------------------------------------
  55. include-tagged::{doc-tests-file}[{api}-start]
  56. --------------------------------------------------
  57. <1> Influencers with timestamps on or after this time will be returned.
  58. include::../execution.asciidoc[]
  59. [id="{upid}-{api}-response"]
  60. ==== Get influencers response
  61. The returned +{response}+ contains the requested influencers:
  62. ["source","java",subs="attributes,callouts,macros"]
  63. --------------------------------------------------
  64. include-tagged::{doc-tests-file}[{api}-response]
  65. --------------------------------------------------
  66. <1> The count of influencers that were matched.
  67. <2> The influencers retrieved.