Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5
Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5
ffmpeg -i Michael_Jackson_–_Bad.mp3 -ar 8000 -ac 1 -ab 64 out_2.wav |
<?php | |
namespace App\Libraries; | |
use Google\AdsApi\AdWords\AdWordsServices; | |
use Google\AdsApi\AdWords\AdWordsSession; | |
use Google\AdsApi\AdWords\AdWordsSessionBuilder; | |
use Google\AdsApi\AdWords\Reporting\v201710\DownloadFormat; | |
use Google\AdsApi\AdWords\Reporting\v201710\ReportDefinition; | |
use Google\AdsApi\AdWords\Reporting\v201710\ReportDefinitionDateRangeType; |
//var tsv is the TSV file with headers | |
function tsvJSON(tsv){ | |
var lines=tsv.split("\n"); | |
var result = []; | |
var headers=lines[0].split("\t"); | |
for(var i=1;i<lines.length;i++){ |
function guid() { | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(1); | |
} | |
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | |
s4() + '-' + s4() + s4() + s4(); | |
} |
var $jsonp = (function(){ | |
var that = {}; | |
that.send = function(src, options) { | |
var callback_name = options.callbackName || 'callback', | |
on_success = options.onSuccess || function(){}, | |
on_timeout = options.onTimeout || function(){}, | |
timeout = options.timeout || 10; // sec | |
var timeout_trigger = window.setTimeout(function(){ |
ffmpeg -i inputfile.wav -ab 320k outputfile.mp3 |
function sendFormByEmail(e) | |
{ | |
// Remember to replace this email address with your own email address | |
var email = "[email protected]"; | |
var subject = "Hello Form"; | |
var message = ""; | |
var form = FormApp.getActiveForm(); | |
var formResponses = form.getResponses(); |
var globalSIPml = { | |
sipStack: {}, | |
config: {}, | |
can_call: false, | |
//SESSION | |
sipStackSessionEventsListener: function (e) { | |
console.info('sipStackSessionEvent: ' + e.type); | |
var self = this; | |
if (e.type == 'connected' && e.session == self.registerSession) { | |
console.log('соединение установлено'); |
# This file maps Internet media types to unique file extension(s). | |
# Although created for httpd, this file is used by many software systems | |
# and has been placed in the public domain for unlimited redisribution. | |
# | |
# The table below contains both registered and (common) unregistered types. | |
# A type that has no unique extension can be ignored -- they are listed | |
# here to guide configurations toward known types and to make it easier to | |
# identify "new" types. File extensions are also commonly used to indicate | |
# content languages and encodings, so choose them carefully. | |
# |