POST - https://app.leadbi.com/public_api/signup
Body:
{
company: 'Sales, Inc.', // required
| /** | |
| * Convert PDFDocument to Base64 | |
| */ | |
| const PDFDocument = require('pdfkit'); | |
| const stream = require('./stream'); | |
| // crate document and write stream | |
| let doc = new PDFDocument(); | |
| let writeStream = new stream.WritableBufferStream(); |
| /** | |
| * NodeJS beefree.io integration | |
| */ | |
| const https = require('https'); | |
| const querystring = require('querystring'); | |
| /** | |
| * Fetch access token from beefree api | |
| */ |
| var form_id = 3; | |
| // listen to all ajax completed events | |
| jQuery(document).ajaxComplete(function (event, jqXHR, ajaxOptions) { | |
| // try to parse response | |
| var data = JSON.parse(jqXHR.responseText || '{}'); | |
| // check if the ajax request is for our form | |
| if (data.data.form_id == form_id) { |
| <?php | |
| // To connect to an IMAP server running on port 993 on the local machine, | |
| // do the following: | |
| $mbox = imap_open("{mailmoka.com:993/imap/ssl/novalidate-cert}INBOX", "delivery", "Ahgn8WKqyQGqgpeXiInh"); | |
| echo "<h1>Mailboxes</h1>\n"; | |
| $folders = imap_listmailbox($mbox, "{mailmoka.com:993}", "*"); | |
| if ($folders == false) { | |
| echo "Call failed<br />\n"; |
POST - https://app.leadbi.com/public_api/signup
Body:
{
company: 'Sales, Inc.', // required
| var express = require('express') | |
| var app = express() | |
| /** | |
| * After app starts, demote the app to a low privilege user | |
| */ | |
| function demote() { | |
| if(process.platform != 'linux') { | |
| return false; |
| """ | |
| Whois client for python | |
| transliteration of: | |
| http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/whois/whois.c | |
| Copyright (c) 2010 Chris Wolf | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal |
| // leadbi.com | |
| var native_formid = '3638a022-2823-4541-b31c-1856f6a72933'; | |
| // get form instance | |
| window.$leadbi_forms.getForm(native_formid, function (err, form) { | |
| // form data | |
| var data = { | |
| first_name: 'test', // optional | |
| last_name: 'test', // optional |
In order to access the leadbi api you need to create a api key in the account section. After the api key is created you can make api calls using the following headers:
GET /api/v1/websites
Host: app.leadbi.com
| // check if $leadbi_website api is available | |
| if(window.$leadbi_website){ | |
| // fetch user object of the current visitor | |
| window.$leadbi_website.getCurrentUser(function (err, user) { | |
| // call the identify api | |
| // calling this method multiple times for the same email address will not create duplicate contacts | |
| return user.identify({ |