Hi
I have been trying to make a public post without success, using this
the post is restricted and can be seen only by me, how can it be made
to that the post are public?
<?php
$username='username';
$password='password';
$message=' is this on? ';
$place = '00000000000000000000000000000000';
$ch = curl_init();
$url = '';
if (strlen($message)+strlen($url)+1 > 140) {
$end = 140-(strlen($url)+1);
$message = substr($message, 0, $end);
$message = $message . ' ' . $url;
}
else
{
$message = $message . ' ' . $url;
}
$note = array('note[body]' => $message);
curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password);
curl_setopt($ch, CURLOPT_URL, '
http://brightkite.com/places/' .
$place . '/notes.json');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $note);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$response = curl_exec($ch);
curl_close($ch);
$json = json_decode($response, TRUE);
print_r($json);
?>