Skip to main content
If you are organizing essential services or emergency response to COVID-19, activate your free account

Activity

commented on Blog Posts API
ok, follow up of what I was asking, instead of using the oauth tool provided in the php guide. I wrote the curl script as following:
<a class="tweet-url cashtag" href="https://twitter.com/#!/search?q=%24url" title="$url">$url</a> ="<a href="https://foobar.nationbuilder.com/api/v1/sites/foobar/pages/blogs/1/posts?access_token=">https://foobar.nationbuilder.com/api/v1/sites/foobar/pages/blogs/1/posts?access_token=</a>" . <a class="tweet-url cashtag" href="https://twitter.com/#!/search?q=%24token" title="$token">$token</a>;
<a class="tweet-url cashtag" href="https://twitter.com/#!/search?q=%24data" title="$data">$data</a> = array(
        'blog_post' =&amp;gt; '{"slug":"this-is-a-slug", "and-whatever-is-required":"here"}'
);

<a class="tweet-url cashtag" href="https://twitter.com/#!/search?q=%24ch" title="$ch">$ch</a> = curl_init($url);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); 
curl_setopt($ch, CURLOPT_TIMEOUT, '10'); 
curl_setopt($ch, CURLOPT_HTTPHEADER, 

array("Content-Type: application/json","Accept: application/json"));

<a class="tweet-url cashtag" href="https://twitter.com/#!/search?q=%24json" title="$json">$json</a>_data = json_encode($data);
curl_setopt($ch, CURLOPT_POSTFIELDS, <a class="tweet-url cashtag" href="https://twitter.com/#!/search?q=%24json" title="$json">$json</a>_data);

<a class="tweet-url cashtag" href="https://twitter.com/#!/search?q=%24json" title="$json">$json</a>_response = curl_exec($ch);
curl_close($ch);

$response = json_decode($json_response, true);

print_r($response);


Now that is actually giving me this now:
Array ( [code] =&amp;gt; server_error [message] =&amp;gt; You have encountered a server error. ) 
posted 2015-04-26 18:34:51 -0700
commented on site
Where do I find the settings for button1, button2, button3?
posted 2015-03-29 22:31:59 -0700
commented on Bootstrap framework now available for building custom themes
Why!? I just spent a lot of time setting my bootstrap scss files yesterday!!
But anyway, it is still good news.
posted 2015-03-19 22:11:08 -0700