API whatsgate.ru
Интерфейс для взаимодействия с клиентом Whatsapp
Automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version:
- Build package: io.swagger.codegen.v3.generators.scala.ScalaClientCodegen For more information, please visit https://whatsgate.ru/
Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deployRefer to the official documentation for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-scala-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
compile "io.swagger:swagger-scala-client:1.0.0"libraryDependencies += "io.swagger" % "swagger-scala-client" % "1.0.0"All URIs are relative to https://whatsgate.ru/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | checkPost | POST /check | Проверка зарегистрирован ли номер в WhatsApp |
| DefaultApi | getChatsPost | POST /get-chats | Возвращает список активных чатов |
| DefaultApi | seenPost | POST /seen | Отправляет команду в чат, что последние сообщения просмотрены |
| DefaultApi | sendMessage | POST /send | Отправка сообщения |
| _Api | getMediaPost | POST /get-media | Возвращает объект медиафайла, прикрепленного к сообщению |
- AnyOfseenBodyRecipient
- AnyOfsendBodyMessage
- AnyOfsendBodyRecipient
- CheckBody
- Error
- GetchatsBody
- GetmediaBody
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- Media
- MessageMedia
- MessageText
- OneOfinlineResponse200Result
- RecipientId
- RecipientNum
- ResponseAsync
- ResponseChat
- ResponseChatGroupMetadata
- ResponseChatGroupMetadataParticipants
- ResponseMessage
- SeenBody
- SendBody
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: X-API-Key
- Location: HTTP header
See the homepage https://github.com/swagger-api/swagger-codegen for full details.
But briefly, clone the git repository, build the codegen codebase, set up your build
config file, then run the API build script. You will need git, Java 7 or 8 and Apache
maven 3.0.3 or better already installed.
Your library files will be built under WWW::MyProjectName.
$ git clone https://github.com/swagger-api/swagger-codegen.git
$ cd swagger-codegen
$ mvn package
$ java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
-i [URL or file path to JSON swagger API spec] \
-l akka-scala \
-c /path/to/config/file.json \
-o /path/to/output/folder
Bang, all done. Run the autodoc script in the bin directory to see the API
you just built.