public NewsClient
| Modifier and Type | Method and Description |
|---|---|
NewsEntity |
getEverything(java.lang.String q,
java.lang.String... sources)
Returns the /everything endpoint
|
SourceEntity |
getSources()
Returns available sources.
|
NewsEntity |
getTopHeadlines(java.lang.String q,
java.lang.String... sources)
Returns the top headlines of today.
|
@GET @NotNull NewsEntity getTopHeadlines(@Query @Nullable java.lang.String q, @Query @NotNull java.lang.String... sources)
Returns the top headlines of today.
q - Query to searchsources - An array of sources to use.class NewsEntity@GET @NotNull SourceEntity getSources()
Returns available sources.
class SourceEntity@GET @NotNull NewsEntity getEverything(@Query @Nullable java.lang.String q, @Query @NotNull java.lang.String... sources)
Returns the /everything endpoint
q - Query to searchsources - An array of sources to use.class NewsEntity