Well, the term finished is a bit overrated. But I wrote a WordPress plugin which sends a message to your Adove Wave feed, after you have published a blog post. The message will contain the title of your post as text and is linked the latest blog post.
Installation is quite simple: just download the WordPress plugin, unpack it, and upload it via FTP to your blog. You need to store it in the wp-content/plugins folder. Then log into you wordpress installation, choose “Plugins” and activate the “Christian Grobmeier Wave Plugin”. Sorry for the name dudes, but WordPress usually needs something unique and I hadn’t had a name which sounds more cool. Well, you have to deal with it.
Once that is done you need to configure your plugin. This can be done in “Settings / Grobmeier Wave Plugin”. Please provide the topic you want to post to, your wave Username and your Wave password. If you don’t have such things, you’ll probably need a Adobe Publisher Account.
That’s all for the plugin. Once you finished the steps above, WordPress will send notifications to your users when ever you post something.
If you come into unexpected trouble, then please check if you are running WordPress with PHP5. I figured out this morning that my installation was running on PHP4 for a long time… this brought up several syntax exceptions. To be clear: you’ll need PHP5 to run this plugin.
Last thing beeing said: this is licensed with Apache License 2.0. No guarantees, use at own risk.
Your feedback is appreciated. If you have any more questions, drop me some lines too.
Tags: Adobe Wave, PHP, Wordpress
That’s interesting!
I’m still waiting for my Adobe Wave account to be approved but I looked at the sources: nice!
By the way, I would rename the classes (APIToken and BroadcastMessage) to less vague names, which can be unclear when working in bigger projects.
I’ll probably get back to you when I play with it.
Thanks, anyways!
Thanks for the words. Let me know if it works out well for you. I will have some more work on this since I decided recently that this classes might fit quite good in the PIWI framework too. However, enjoy!
Awesome…installed this on one of the Adobe partner blogs and it works like a charm. Thanks!
[...] http://blog.grobmeier.de/2009/08/04/adobe-wave-wordpress-plugin-finished.html [...]
Have you seen the source code for tecinfor-wave. It’s in the WordPress plugin directory here: http://wordpress.org/extend/plugins/tecinfor-wave/
Looks nearly identical to yours.
Actually this is my code. This guy only removed my copyright information. Thanks for the tip.
No problem. I had an issue with some of the curl implementation. I had to change the following lines in APIToken.php (starting at line 105). It seems that Adobe no longer accepts basic auth, it now accepts username and password through the query string.
$url = sprintf(self::ENDPOINT.’?username=%s&password=%s’, $this->username, $this->password);
curl_setopt($handle, CURLOPT_URL, $url);
curl_setopt($handle, CURLOPT_POST, 1);
curl_setopt($handle, CURLOPT_POSTFIELDS, ”);
// curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
// curl_setopt($handle, CURLOPT_USERPWD, $this->username.’:’.$this->password);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
Although, I’m still not seeing my alerts come up in my feed. Still no idea why.
Hm interesting. I asked at the Wave Forum. Did you try to enable SSL?
I think that could help:
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, true);
But I am not sure. I will explore this the next days – if you would like to join up, we could create a googlecode project.
Btw, here is the forum post:
http://forums.adobe.com/thread/551289
I responded to Christian’s forum question.
Joerg
Jason, can you please checkout the new Wavediver project (its my code – I added it this morning to googlecode). I have added a cli.php file which helps you sending messages from commandline. This way we can find the error better. However, in this blog (2.9.1 WP) it works again – don’t know why.
http://code.google.com/p/wavediver/
Hey, I completely missed all these messages. I’ll check it out right now. Too bad WordPress can’t email me when someone comments on this thread.
Jason
The cli is great. Nice work! My issue is that I’m getting a 403 code. From adobe docs:
“The server understood the request, but refuses to fulfill it. The resource is controlled by another owner. The API token provided with this request identifies a user that does not have authority to perform this operation.Note: Response code 403 indicates that the user is not authorized to perform this operation. Response code 401 indicates that the user is not authorized to use the service at all.”
I set CURLOPT_SSL_VERIFYHOST to false for all the curl requests, but re-reading the adobe documentation leads me to believe that my account (an Admin account) doesn’t have access to publishing a message.
We just got accepted as an Adobe Wave publisher, but I can’t even publish…
I’m going to email their support staff and put a message on their forum. This just doesn’t make sense.
Jason -hope you found a solution on the support board finally. Let me know. Btw – you can now follow via Twitter on new blog posts. Its not working with comments yet, for these you need to use RSS instead -for the moment