How can I give energy to a node based on the results of a Technorati Cosmos request?
| Project: | Radioactivity |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Technorati Cosmos is a service that shows you who's linking to any given URL.
I have a site where I use radioactivity to list stories. I also list stories that link to them, found via a get request to the Technorati Cosmos API.
How can I give X energy to my nodes based on the number of sites that turn up when a request comes back with results?
Let's say I create a new node and someone links to it an hour later. An hour after that, I run a cron job, which runs a get Technorati Cosmos function for that node. It turns up two backlinks. I'd like to then give the node 2 x X energy.
If, an hour later, when cron runs again, and it just finds the two links, it would get +0 energy.
Is this possible? If so, how more or less?

#1
Any luck? It seems like this module is designed to be able to do this, there's just no documentation on how to implement a setup like this.
#2
Anyone? I'm not familiar with Technorati Cosmos. Anyways, if you're looking for a one-time solution, you can always add energy directly in radioactivity database table, or call radioactivity_add_energy.
For more proper way to implement this, we should probably have a small plugin, which adds a new energy source which gets triggered by new backlinks. Consider radioactivity_votingapi for a template.
#3
Interesting. It sounds like I'm not understanding the Arbitrary radioactivity sources plugin properly. I thought the idea for that was to let you add other sources of "energy" for nodes beyond clicks and comments. Am I understanding it wrong?
This module seems like it has huge potential, I think a little explanation of what some of these other pieces do or are meant to do would go a long way. Just from looking at the module code, it's not clear what the HTTP port plugin, or either of the arbitrary plugins do or how they are to be used.