Class: Cotoha::Client
- Inherits:
-
Object
- Object
- Cotoha::Client
- Includes:
- Connection, Endpoint
- Defined in:
- lib/cotoha/client.rb
Constant Summary collapse
- BASE_URL =
'https://api.ce-cotoha.com'
Instance Method Summary collapse
-
#initialize(url: nil, client_id: nil, client_secret: nil, token: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoint::Summary
Methods included from Endpoint::Sentiment
Methods included from Endpoint::Misrecognition
Methods included from Endpoint::RemoveFiller
Methods included from Endpoint::UserAttribute
Methods included from Endpoint::SentenceType
Methods included from Endpoint::Similarity
Methods included from Endpoint::Keyword
Methods included from Endpoint::Coreference
Methods included from Endpoint::NamedEntity
Methods included from Endpoint::Parse
Methods included from Endpoint::AccessToken
Methods included from Connection
Constructor Details
#initialize(url: nil, client_id: nil, client_secret: nil, token: nil) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/cotoha/client.rb', line 10 def initialize(url: nil, client_id: nil, client_secret: nil, token: nil) @url = url || BASE_URL @client_id = client_id @client_secret = client_secret @token = token end |