Instance Constructors
-
new
DiscourseApiClient(endPoint: String, credentials: Option[Credentials] = None, httpClient: BaseHttpClient = ...)
Type Members
-
implicit
class
RichString extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
createPost(createPost: CreatePost): Post
-
def
createTopic(createPost: CreatePost): Topic
-
-
val
credentials: Option[Credentials]
-
def
delete(uri: String): Boolean
-
def
deletePost(id: Int): Unit
-
def
editPost(id: Int, createPost: CreatePost): Post
-
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): DiscourseApiClient
-
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
def
generateApiKey(userId: Int): ApiKey
-
def
get[T](uri: String, opts: Map[String, String]): String
-
def
get(uri: String): String
-
def
getCategory(id: Int): Category
-
final
def
getClass(): Class[_]
-
def
getPost(id: Int, args: Map[String, String] = Map.empty): Post
-
def
getTopic(id: Int): Topic
-
def
getUser(username: String): UserDetail
-
def
grantUserBadge(grantBadge: GrantBadge): Badge
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
listApiKeys(): Array[ApiKey]
-
def
listBadges(): Array[Badge]
-
def
listCategories(opts: Map[String, String]): Array[Category]
-
def
listLatestTopics(categorySlugOrId: String): Array[Topic]
-
def
listNewTopics(categorySlugOrId: String): Array[Topic]
-
-
def
listTopTopics(categorySlugOrId: String): Array[Topic]
-
def
listUserBadges(username: String): Array[Badge]
-
def
listUsers(kind: String): Array[User]
-
val
logger: Logger
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
post[T <: SerializableAsJson](uri: String, data: T): String
-
def
put(uri: String): String
-
def
put[T <: SerializableAsJson](uri: String, opts: Map[String, String], data: T): String
-
def
put[T <: SerializableAsJson](uri: String, data: T): String
-
def
requestBuilder(): Builder
-
def
revokeUserApiKey(userId: Int): Boolean
-
def
searchQuery(term: String, opts: Map[String, String]): SearchResponse
-
def
searchQuery(term: String): SearchResponse
-
def
suspendUser(userId: Int, suspendUser: SuspendUser): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
unsuspendUser(userId: Int, level: Int): Unit
-
-
def
updateEmail(username: String, email: String): Unit
-
def
updateTrustLevel(userId: Int, level: Int): Unit
-
-
def
updateUsername(currentUsername: String, newUsername: String): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
Inherited from StrictLogging
Inherited from AnyRef
Inherited from Any
Client for discourse forum api requests