Giter Club home page Giter Club logo

bx24's Introduction

Build Status Maintainability Test Coverage

With this package, you can use promise instead of bx24, that use a callback.

Intended for use only in applications that are hosted in the Bitrix cloud. Read more...

Install

npm i -S bx24

or

yarn add bx24

Usage

import { BX24 } from 'bx24';

const bx24 = new BX24(window, parent);

bx24.getAuth().then(function(auth) {
  console.log(auth);
});
//ACCESS_TOKEN: "f501215d003d7e84003d7e8200000001100e03dc37a458d34295efbd236acf1d3e6cc7"
//DOMAIN: "b24-gx7djf.bitrix24.ru"
//EXPIRES_IN: undefined
//MEMBER_ID: "10aa3c0406bae7b5dbba1d87164f4a8f"
//REFRESH_TOKEN: "e580485d003d7e84003d7e8200000001100e03c1685c8a1a76097df895324671373e09"

CDN

<script src="https://unpkg.com/bx24@latest/lib/index.js"></script>
<script>
    var bx24 = new BX24();

    bx24.getAuth.then(function(auth) {
        console.log(auth);
    });
// ACCESS_TOKEN: "f501215d003d7e84003d7e8200000001100e03dc37a458d34295efbd236acf1d3e6cc7"
// DOMAIN: "b24-gx7djf.bitrix24.ru"
// EXPIRES_IN: undefined
// MEMBER_ID: "10aa3c0406bae7b5dbba1d87164f4a8f"
// REFRESH_TOKEN: "e580485d003d7e84003d7e8200000001100e03c1685c8a1a76097df895324671373e09"
</script>

bx24's People

Contributors

dependabot[bot] avatar eustatos avatar

Stargazers

 avatar  avatar  avatar

bx24's Issues

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.