GithubHelp home page GithubHelp logo

botdoc_api_java_sample_code's Introduction

This package is a Code Sample demonstrates how to Athenticate and Create a Push with Botdoc-API

Installing

We added few packages that are necessary in order to user the code, you could change for other packages that execute the same functions The Packages are inside "additional_libs.rar", extract the packages and import in your project in order to work this Code Sample.

Botdoc.io API Java Sample code

Sample code on how to run the Botdoc API on Java

Use Your API Credentials

On the following lines of "src/botdocapisample/BotdocConnector.java" update the credentail to your use your own, and replace the endpoint to this environment. You can get your api key at https://sandboxdev.botdoc.io/ for testing on sandbox, or https://dev.botdoc.io/ for live tests.

public class BotdocConnector {
    private final String apikey = "<PUT YOUR APIKEY HERE>";
    private final String account_email = "<PUT YOUR EMAIL ADDRESS HERE>";
    private final String endpoint_base_url = "https://sandboxapi.botdoc.io";
    ...

Update the contact information and request information

This example has all Request and Contact attributes hardcoded as it serves only as a sample how to perform a call to our API. If you want to update those details, you may update any of the attributes at "src/BotdocConnector.java" inside the method "createRequest()". This method is responsable for creating a Request (PUSH or PULL) and, associate all provided contact information to it.

Open the terminal an run

java BotdocApiSample.java

JOIN US ON SLACK

If you have any question let us know and we will be more than happy to help you on your Botdoc API path!

botdoc_api_java_sample_code's People

Contributors

danielmescoloto avatar pauloperes avatar rafaeljuzwiak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.