onlinecode

Proxyclick Create meeting using php

Proxyclick Create meeting using php

In this post we will show you Proxyclick Create meeting using php, hear for Proxyclick Create meeting using php we will give you demo and example for implement.

Read More

curl call for Proxyclick Create meeting

curl https://api.proxyclick.com/v1/companies/<companyId>/vm/meetings/ \
-X POST \
-H 'Authorization: Bearer <accessToken>' \
-H 'Accept: applicationhttps://onlinecode.org/json' \
-H 'Content-Type: applicationhttps://onlinecode.org/json' \
-d '
{
"title": "onlinecode org",
"startAt": "2017-08-12T15:00:00+01:00",
"endAt": "2017-08-12T17:00:00+01:00",
"hostId": "US-GRN707",
"visitors": [
{
"firstName": "onlinecode",
"lastName": "org",
"companyName": "onlinecode",
"email": "ingo@onlinecode",
"phone": "99999999",
"mobile": "99999999",
"language": "en",
"customFields": [
{
"id": 1234,
"value": "PN733941234"
}
],
"smsReminder": false
}
]
}'

curl output for Proxyclick Create meeting


{
"object": "meeting",
"id": "M-YWEI123",
"uid": "217193FA-9898-4A85-9D61EDB07A52A111",
"company": {
"object": "corporate",
"id": "CO-RTG911",
"name": "onlinecode",
"timezone": "America/New_York",
"locale": "en-US",
"phone": "+99999999",
"logoOriginal": "https://...",
"logo24": "https://...",
"logo36": "https://...",
"logo64": "https://...",
"logo128": "https://...",
"logo192": "https://...",
"createdAt": "2017-01-07T09:05:31Z",
"lastModifiedAt": "2017-02-19T09:32:53Z"
},
"title": "Discuss partnership",
"description": null,
"startAt": "2017-02-18T16:00:00+01:00",
"endAt": "2017-02-18T18:00:00+01:00",
"host": {
"object": "user",
"id": "US-GRN606",
"firstname": "onlinecode",
"lastname": "org",
"companyName": "onlinecode",
"email": "ingo@onlinecode",
"phone": "+44799999999",
"mobile": "+44799999999",
"language": {
"code": "en",
"name": "English",
"displayName": "English"
},
"pictureOriginal": "https://...",
"picture24": "https://...",
"picture36": "https://...",
"picture64": "https://...",
"picture128": "https://...",
"picture192": "https://...",
"createdAt": "2017-06-14T11:22:14Z",
"lastModifiedAt": "2017-06-14T11:22:14Z"
},
"visitors": [
{
"object": "visitor",
"id": "V-ETBZ519",
"firstname": "onlinecode",
"lastname": "org",
"companyName": "onlinecode",
"email": "ingo@onlinecode",
"phone": "",
"mobile": "",
"language": {
"code": "en",
"name": "English",
"displayName": "English"
}
"pictureOriginal": "https://...",
"picture24": "https://...",
"picture36": "https://...",
"picture64": "https://...",
"picture128": "https://...",
"picture192": "https://...",
"function": null,
"about": null,
"licensePlate": null,
"customFields": [
{
"object": "customFieldValue",
"id": 2386,
"name": "Passport number",
"valueType": "STRING",
"value": "PN733949125"
}
],
"smsReminder": false
}
],
"timezone": "America/New_York",
"createdAt": "2015-02-18T14:57:32Z",
"lastModifiedAt": "2015-02-18T14:57:30Z"
}

Proxyclick Create meeting using php code

class Proxyclick {
public $headers = '';
// set url
public $url = '';

//all fields array
public $fields = array();

function __construct () {
// $this->headers = array('Content-Type: application/x-www-form-urlencoded');
// HERE set headers statick if you want it
}

// PHP functions to curl call
function call () {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
curl_setopt($ch, CURLOPT_URL, $this->url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($this->fields));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
curl_close($ch);

return json_decode($output, true); // return here php array with stripe api response
}
}

$proxyclick = new Proxyclick();
// set Proxyclick Create meeting fields companyId hear
$proxyclick->url = 'https://api.proxyclick.com/v1/companies/<companyId>/vm/meetings/';

$proxyclick->headers = array('Content-Type: application/x-www-form-urlencoded');

// set Proxyclick Create meeting fields value
$proxyclick->fields["title"] = "Discuss partnership";
$proxyclick->fields["startAt"] = "2015-01-12T15:00:00+01:00";
$proxyclick->fields["endAt"] = "2015-01-12T17:00:00+01:00";
$proxyclick->fields["hostId"] = "US-GRN909";
$visitors = array(
"firstName"=>"onlinecode",
"lastName"=>"org",
"companyName"=>"onlinecode",
"email"=>"ingo@keyline.org",
"phone"=>"99999999999",
"mobile"=>"99999999999",
"language"=>"en",
"customFields"=>array(
"id"=>"9658",
"value"=>"PN733568125"
),
"smsReminder"=>"false"
);
$proxyclick->fields["hostId"] = $visitors;
// set Proxyclick Create meeting
$proxyclick = $proxyclick->call();

Hope this code and post will helped you for implement Proxyclick Create meeting using php. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org

Exit mobile version