Josh Fraser
59p196 comments posted · 61 followers · following 25
3 weeks ago @ Online Aspect - The bell · 0 replies · +1 points
- The have a really great attention to detail in their UI
- You have lots of options for clients (web, desktop, iphone)
- Their API rocks
4 weeks ago @ Online Aspect - Reading GET variables ... · 0 replies · +1 points
5 weeks ago @ Online Aspect - No risk, no reward · 0 replies · +1 points
8 weeks ago @ Online Aspect - The bell · 0 replies · +1 points
function post_to_socialcast($message, $url = false) {
$socialcast_url = "https://SHORTCODE.socialcast.com/api/messages.json";
$message = "message[title]=".$message;
// link this message?
$message .= ($url) ? "&message[url]=".$url : "";
// curl options
$options[CURLOPT_SSL_VERIFYPEER] = 0; // important
$options[CURLOPT_USERPWD] = "EMAIL:PASSWORD";
$options[CURLOPT_POST] = 1;
$options[CURLOPT_POSTFIELDS] = $message;
single_curl($socialcast_url, false, $options);
}
Obviously you need to replace SHORTCODE, EMAIL and PASSWORD with your own values. This code uses my curl library that you can find at: http://www.onlineaspect.com/2009/01/26/how-to-use...
Hope that helps. Feel free to email me if you need more.
8 weeks ago @ Online Aspect - The bell · 0 replies · +1 points
9 weeks ago @ Online Aspect - How to use curl_multi(... · 0 replies · +1 points
9 weeks ago @ Online Aspect - How to use curl_multi(... · 1 reply · +1 points
$callback = create_function('$response,$info', '
// parse the page title out of the returned HTML
if (eregi ("<title>(.*)</title>", $response, $out)) {
$title = $out[1];
}
echo "$title
";
print_r($info);
echo "<hr>";
');
$rc = new RollingCurl($callback);
9 weeks ago @ Online Aspect - How to use curl_multi(... · 1 reply · +1 points
2 weeks ago @ one - Does Browser HTML5 Sup... · 1 reply · +1 points
7 weeks ago @ one - Gnip\'s 2009 Rocked My... · 1 reply · +1 points
I think being "overly principled" is a common struggle for engineers everywhere, but it's in startups where you really feel the cost of it.
Thanks for your openness to share this.
Joint