Skip to content

whatsgate/scala_sdk

Repository files navigation

NAME

API whatsgate.ru

Интерфейс для взаимодействия с клиентом Whatsapp

VERSION

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/

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

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>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-scala-client:1.0.0"

SBT users

libraryDependencies += "io.swagger" % "swagger-scala-client" % "1.0.0"

Documentation for API Endpoints

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 Возвращает объект медиафайла, прикрепленного к сообщению

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

BUILDING YOUR LIBRARY

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.

Author

About

Scala API whatsgate.ru

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published