Avatar
Please consider registering
Guest
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Register Lost password?
sp_Feed sp_TopicIcon
Sibell Recorder GetSnapshot
sp_NewTopic Add Topic
Avatar
Jose Malave
Boca Raton, Florida
Admin
Forum Posts: 820
Member Since:
January 3, 2014
sp_UserOfflineSmall Offline
1
February 15, 2017 - 5:15 pm
sp_Permalink sp_Print sp_EditHistory sp_QuotePost
sp_ReportPost

To get a snapshot you have to do a POST or a GET command to the device. like so

I have done a stike to remove the link feature on browsers. Breaking this down is the ip of the device,port is the http port and [/channelid] is the channel number. So if you want a snapshot from a recorder channel 3 then input the numerical 3. For a camera snapshot default to 1. 

Doing a POST request. 

HTTP Code

POST /GetSnapshot HTTP/1.1
Host: 192.168.1.201
Authorization: Basic YWRtaW46MTIzNDU2
Cache-Control: no-cache
Postman-Token: a5cb034f-5135-b757-6236-6adf083b2171
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

PHP Code

$request->setUrl('http://192.168.1.201/GetSnapshot');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
'postman-token' => '8bce154d-59b3-51b1-1663-8bc46a0c28af',
'cache-control' => 'no-cache',
'authorization' => 'Basic YWRtaW46MTIzNDU2'
));

try {
$response = $request->send();

echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}

Curl code

curl -X POST -H "Authorization: Basic YWRtaW46MTIzNDU2" -H "Cache-Control: no-cache" -H "Postman-Token: 192ba6d1-b50e-9908-66d3-d2d41aa2d01a" "http://192.168.1.201/GetSnapshot"

 

For a GET Request do 

 

HTTP Code

GET /GetSnapshot HTTP/1.1
Host: 192.168.1.201
Authorization: Basic YWRtaW46MTIzNDU2
Cache-Control: no-cache
Postman-Token: 5f78cb4b-1618-1432-412b-41f28be49ffd

 

PHP Code

$request->setUrl('http://192.168.1.201/GetSnapshot');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
'postman-token' => 'ddce98d0-6915-9e11-fbf4-f093215e4cc3',
'cache-control' => 'no-cache',
'authorization' => 'Basic YWRtaW46MTIzNDU2'
));

try {
$response = $request->send();

echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}

Curl Code

curl -X GET -H "Authorization: Basic YWRtaW46MTIzNDU2" -H "Cache-Control: no-cache" -H "Postman-Token: 6674fa87-2aec-7c93-4dd4-a54caca7e02b" "http://192.168.1.201/GetSnapshot"

 

For these, there is an auth which is basic. You can use a basic generator to add the proper string. Here we are using the default admin/123456 to authenticate ourselves when requesting for the snapshot.  

 Jose Malave - IT Director| Toll Free: 866-573-8878 | E-mail: support@securitycameraking.com

Forum Timezone: America/New_York
Most Users Ever Online: 727
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Techpro Security: 404
shockwave199: 179
tubac: 167
Jer7of9: 155
Gilberto: 150
MrDeepFreeze: 136
Night Hawk: 100
Mark: 90
West Coast Jones: 66
ShawnInFL: 64
Newest Members:
jadedblu12@gmail.com
gasman21
Jamie Teeters
scubamaster
JustGene
Robertkanny
Donald
LeoFreskos
Bula dinor 000x securitycameraking.com mv
cingusmartly
Forum Stats:
Groups: 5
Forums: 28
Topics: 1504
Posts: 6003

 

Member Stats:
Guest Posters: 144
Members: 23019
Moderators: 7
Admins: 5
Administrators: Damon Delcoro, Brad Besner, Jose Malave, Damon Delcoro, Tony Petruzzi
Moderators: Zeke Richey, Eric Wilson, Yarden Pinhasi, Joe Shopsin, jwilhelmi, Jorge Nava, Tyler Rittel