-
Notifications
You must be signed in to change notification settings - Fork 0
How to upload author meta data
You can extend the information that is available for your PAUSE ID by uploading a file author-1.0.json to the root directory of your PAUSE ID. The following is an example file which can be used as a template (don't forget to remove the comments):
{
"openid" : "http://justatheory.com/",
"country" : "US", // two letter country code (http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
"city" : "Portland",
"region" : "OR", // no convention here, common sense applies
"location": {lat: 12.23, lon: 8.324},
"profile" : [
{
"id" : "79202", // stackoverflow ids are numerical
"name" : "stackoverflow"
},
{
"id" : "theory",
"name" : "delicious"
},
{
"id" : "1059",
"name" : "oreilly"
},
{
"id" : "justatheory",
"name" : "slideshare"
},
{
"id" : "theory",
"name" : "github"
},
{
"id" : "theory",
"name" : "linkedin"
},
{
"id" : "justtheory",
"name" : "youtube"
},
{
"id" : "theory",
"name" : "perlmonks"
},
{
"id" : "david.e.wheeler",
"name" : "facebook"
},
{
"id" : "theory",
"name" : "twitter"
}
],
"website" : [
"http://www.justatheory.com/"
],
"donation" : [
{
"name" : "paypal",
"id" : "[email protected]"
}
],
"blog" : [
{
"feed" : "http://feeds2.feedburner.com/justatheory/atomfull",
"url": "http://www.justatheory.com/"
},
{
"feed" : "http://blog.pgxn.org/rss",
"url": "http://blog.pgxn.org/"
},
{
"feed" : "http://use.perl.org/~Theory/journal/rss",
"url": "http://use.perl.org/~theory/journal/"
}
],
"email" : [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
],
"perlmongers" : {
"name" : "PDX.pm",
"url" : "http://pdx.pm.org/"
}
}
Please save it in a file called author-1.0.json and upload it
to the root directory of your PAUSE
directory. We are going to index these files once a day. Since you cannot
overwrite files, you need to supply a new version number when you do
changes. Please remove the old file to reduce the inode load on the CPAN
mirrors.
If you wish to add new fields please contact us. The "extra" field can be used to store an arbitrary object. It is being serialized and then stored in the backend and is available for full-text search.
If you already provided a author.json file to us, you can download the
transformed file from https://github.com/CPAN-API/cpan-api/tree/3ad5ad8506c18e4bc3caa6c1489db694e600dcb5/conf/authors/id
and upload it to your PAUSE directory.