 |
|
 |
 |
 |
|
|
|
(via -
docs.google.com ) I read it on 03/07/10 at 08:58 PM
Posted on 03/08/10 at 01:56 AM
|
This documentation is for TwitterOAuth library verision 0.1.x. If you are using trunk (0.2.x) these instructions will be wrong! Try it out live: http://twitter.abrah.am Twitter OAuth is in beta and could change at any time. Feel free to contact me with bug/questions. A full TwitterOAuth lib will be released soon. Currently the code is hacked together and should not be used in production without proper testing. IndexDefinitionsConsumer: the application you are building. registered with twitter. Sometimes referred to as application
User: the user using your application. Token: there are several different sets of tokens usually in key/secret pairs. Consumer token: the token pair Twitter gives you when you register an application. Request token: the first token pair Twitter returns. used to build an authorize URL used to request the access token. Access token: unique to user. Used to access users data. Get the codePull code from http://github.com/abraham/twitteroauthgit clone git://github.com/abraham/twitteroauth.git Process overviewThis is a very simplistic overview of authenticating with Twitter's OAuth. - Build TwitterOAuth object.
- Request tokens from twitter.
- Build authorize URL.
- Send user to Twitter's authorize URL.
- Get access tokens from twitter.
- Rebuild TwitterOAuth object.
- Query Twitter API with new access tokens.
ProcessFor this example we will be using the the index.php from the example folder and it will be located in the web root. public/index.php public/twitteroauth/
Go to https://twitter.com/oauth_clients and register a new application. Fill out what the form. For a callback URL we will be using http://example.com/index.php. Once registered you will get a consumer key and a consumer secret. Those go in index.php Now we create a TwitterOAuth object. The class constructor chooses HMAC-SHA1 as the signature method, and builds a OAuthConsumer object with the app consumer key/secret. $to = new TwitterOAuth($consumer_key, $consumer_secret); With that object we use curl to request a token from twitter. The API URL we hit is https://twitter.com/oauth/request_token. getRequestToken() pulls the tokens from twitter, parses it into an array, and creates a new OAuthConsumer object. $tok = $to->getRequestToken();
Save the tokens for when the user returns from Twitter. Set up the authorization URL. This is the URL the user will visit to tell twitter the application can access their data. https://twitter.com/oauth/authorize is used. $request_link = $to->getAuthorizeURL($token); Once the user tells twitter yes and returns we request the access tokens. The access tokens can be thought of the users passwords and will be used to authenticate as them for future API calls. https://twitter.com/oauth/access_token is used. $tok = $to->getAccessToken();
At this point you can check https://twitter.com/account/connections and the application should be listed. Build a new TwitterOAuth object using consumer key/secret and access key/secret. $to = new TwitterOAuth($consumer_key, $consumer_secret, $user_access_key, $user_access_secret);
Now to interact with the API as the user to verify their credentials. This should return their profile. You can now save the access key/secret as being associated with the returned user info. $content = $to->OAuthRequest('https://twitter.com/account/verify_credentials.xml', array(), 'GET');
To send a status update change the API URL and add a key/value array. $content = $to->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => 'Test OAuth update. #testoauth'), 'POST'); There you have it. Basic interaction with Twitter's OAuth beta. To run other commands just change the API URL and array() keys/values in the last call. LinksMy website: http://abrah.amTwitter: http://twitter.comOAuth: http://oauth.netTwitter API docs: http://apiwiki.twitter.comTwitter API discussion: http://groups.google.com/group/twitter-development-talkFire Eagle OAuth docs: http://fireeagle.yahoo.net/developer/documentation/php_walkthru
Tags: twitter access token oauth key
|
| |
| |
|
|
|
|
|
|
(via -
NYT > Business ) I read it on 03/06/10 at 09:10 AM
Posted on 03/06/10 at 04:20 AM
|
|
|
|
|
|
(via -
Techdirt ) I read it on 03/02/10 at 08:50 AM
Posted on 03/02/10 at 12:26 PM
|
Nearly a year ago, we wrote about how a YouTube presentation done by well known law professor (and strong believer in fair use and fixing copyright law) Larry Lessig had been taken down, because his video, in explaining copyright and fair use and other such things, used a snippet of a Warner Music song to demonstrate a point. There could be no clearer example of fair use -- but the video was still taken down. There was some dispute at the time as to whether or not this was an actual DMCA takedown, or merely YouTube's audio/video fingerprinting technology (which the entertainment industry insists can understand fair use and not block it). But, in the end, does it really make a difference? A takedown over copyright is a takedown over copyright.
Amazingly enough, it appears that almost the exact same thing has happened again. A video of one of Lessig's presentations, that he just posted -- a "chat" he had done for the OpenVideoAlliance a week or so ago, about open culture and fair use, has received notice that it has been silenced. It hasn't been taken down entirely -- but the entire audio track from the 42 minute video is completely gone. All of it. In the comments, some say there's a notification somewhere that the audio has been disabled because of "an audio track that has not been authorized by WMG" (Warner Music Group) -- which would be the same company whose copyright caused the issue a year ago -- but I haven't seen or heard that particular message anywhere.
However, Lessig is now required to fill out a counternotice challenging the takedown -- while silencing his video in the meantime:
While you can still see the video on YouTube, without the audio, it's pretty much worthless. Thankfully, the actual video is available elsewhere, where you can both hear and see it. But, really, the fact that Lessig has had two separate videos -- both of which clearly are fair use -- get neutered due to bogus copyright infringement risks suggests a serious problem. I'm guessing that, once again, this video was likely caught by the fingerprinting, rather than a direct claim by Warner Music. In fact, the issue may be the identical one, as I believe the problem last year was the muppets theme, which very very briefly appears in this video (again) as an example of fair use in action. But it was Warner Music and others like it that demanded Google put such a fingerprinting tool in place (and such companies are still talking about requiring such tools under the law). And yet, this seems to show just how problematic such rules are.
Even worse, this highlights just how amazingly problematic things get when you put secondary liability on companies like Google. Under such a regime, Google would of course disable such a video, to avoid its own liability. The idea that Google can easily tell what is infringing and what is not is proven ridiculous when something like this is pulled off-line (or just silenced). When a video about fair use itself is pulled down for a bogus copyright infringement it proves the point. The unintended consequences of asking tool providers to judge what is and what is not copyright infringement leads to tremendous problems with companies shooting first and asking questions later. They are silencing speech, on the threat that it might infringe on copyright.
This is backwards.
We live in a country that is supposed to cherish free speech, not stifle it in case it harms the business model of a company. We live in a country that is supposed to encourage the free expression of ideas -- not lock it up and take it down because one company doesn't know how to adapt its business model. We should never be silencing videos because they might infringe on copyright.
Situations like this demonstrate the dangerous unintended consequences of secondary liability. At least with Lessig, you have someone who knows what happened, and knows how to file a counternotice -- though, who knows how long it will take for this situation to be corrected. But for many, many, many other people, they are simply silenced. Silenced because of industry efforts to turn copyright law into something it was never intended to be: a tool to silence the wider audience in favor of a few large companies.
The system is broken. When even the calls to fix the system are silenced by copyright claims, isn't it time that we fixed the system?
Permalink | Comments | Email This Story

Tags: copyright video fair such lessig
|
| |
| |
|
|
|
|
|
|
|
|
(via -
NYT > Technology ) I read it on 02/16/10 at 02:24 PM
Posted on 02/16/10 at 06:37 PM
|
Intel and Nokia have gambled that Qt - pronounced 'cute' - will win the hearts of software creators and then win the mobile wars.
Tags: win qt software hearts mobile
|
| |
| |
|
|
|
|
|
|
(via -
Techdirt ) I read it on 02/16/10 at 08:30 AM
Posted on 02/16/10 at 06:05 AM
|
For years, various luxury brands have been furious that others can buy text keyword advertising based on their trademarked terms, leading to a series of lawsuits. In most place, the courts have realized that just buying a trademarked term as a keyword alone is not infringing on someone's trademark. France, however, is the one exception, having ruled against Google. Now, it's also ruled against eBay for supposedly having ads that pointed to eBay whenever anyone searched on a typo/misspelling of any of LVMH (Louis Vuitton Moet Hennessy). Apparently, in France, you're not even allowed to misspell a trademarked brand name without official permission...
Permalink | Comments | Email This Story

Tags: ebay trademarked having ruled against
|
| |
| |
|
|
|
|
|
|
(via -
Techdirt ) I read it on 02/15/10 at 11:02 PM
Posted on 02/16/10 at 12:31 AM
|
|
|
|
|
|
(via -
Lifehacker ) I read it on 02/15/10 at 11:24 PM
Posted on 02/16/10 at 12:00 AM
|
|
|
|
|
|
(via -
Techdirt ) I read it on 02/15/10 at 11:10 PM
Posted on 02/15/10 at 11:09 PM
|
With my big post explaining the whole CwF+RtB concept in a lot more detail, complete with examples of many artists, small to big, who are using it, we've been hearing about more and more artists. It's really great, and it's often difficult to choose which ones are worth writing up. But sometimes an example comes along that really highlights a point that hasn't necessarily been driven home before, and that helps make the decision easy. ChurchHatesTucker points us to a recent blog post by singer Marian Call in which she talks about her various experiments in connecting with fans and the surprise result of giving them a reason to buy. I can't emphasize enough that the whole post is worth reading, but I'll share a few highlights.
First, she talks about how much value there is in really connecting with your fans over social networks, and that doesn't mean just putting out blast messages about what you're doing, but also reading about what they're doing -- and, at times, going beyond that, including visiting "their websites, blogs, photo albums once in a while." Obviously, you can't do this all the time or with every fan, but it certainly does help connect with many fans in a very genuine way. It's not marketing, it's about making a connection and building a real relationship.
But the bigger point that she makes is that all of this -- both sides of the CwF + RtB equation -- require an awful lot of experimenting:
About twice a week I think, "Why don't I try this crazy idea and see if it works?" about some element of my career. With no label, no manager, and no inner voice of reason slow me down, I get to experiment all I want. 90% of my crazy ideas have to do with social networking -- which I spend half a lifetime doing, despite the crap I take from my family and Real Life friends. (Hey, some of us actually do bond over web comics, starship replicas, the fail whale, and photos of stuff on cats.) Mostly my nutty ideas work just a little bit. Some are epic failures. But my experimental flopping and floundering inches me closer to the day when I'll be totally financially independent as a full-time musician. Plus it's more fun than having a real job.
But every now and then a crazy idea works really really really good. Bam!
The really good idea in this case? She was performing a live gig at Whole Wheat Radio that was to be streamed online, and in a quick & dirty way, decided to offer up a special limited edition "bootleg" CD of live tracks. She said that her Twitter and Facebook friends had been complaining that she hadn't released any new music in a while, and she's still working on her next "studio" album -- but in just two hours she was able to assemble everything she needed for the Marian Call Bootleg Album, which she decided to make available for one night only. How did it work out?
I planned to sell 20-40 of my little bootleg CD's. Silly me. I sold well over 200. My little stack of jewel cases looked so pathetic.
WholeWheatRadio.org broke every record for online listenership, CD sales, tips -- everything. The more listeners tuned in, the more tuned in, and the more money they gave, the more money they gave. The crowd online was thrilled to be breaking WWR records. I drove away from Talkeetna having earned about $4,000 in one night, with a new CD to produce in just a couple of days and an avalanche of e-mail and publicity requests to deal with. Seldom have I been so happy and so panicked.
Again, this isn't the solution for everyone. But it shows how really connecting with fans, and trying different stuff out continuously, helps. Eventually, one or more of those ideas takes off with great results. While she may not be a full-time musician yet, it certainly seems like Marian has all the right pieces in place (and, yes, that includes great music).
Permalink | Comments | Email This Story

Tags: fans connecting cd doing idea
|
| |
| |
|
|
|
|
|
| |
|
|
|
|
|
|
|
|