Comment 4 for bug 996242

Revision history for this message
Stéphane Graber (stgraber) wrote :

Do they explicitly forbid you from sharing the developer key? I couldn't see any reference to that on /api

Anyway, below is a working pastebin profile, you just need to fill the developer key. If we're somehow allowed to ship the developer key, then I'll just add mine and commit the new profile to bzr:

[pastebin]
basename = pastebin.com
regexp = "http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))"

[format]
content = api_paste_code
user = api_paste_name
subdomain = api_paste_subdomain
private = api_paste_private
expiry = api_paste_expire_date
format = api_paste_format
email = api_paste_email
page = page
submit = submit
regexp = regexp
api_dev_key = api_dev_key
api_option = api_option

[defaults]
submit = submit
format = text
private = 0
expiry = 1M
subdomain = ""
email = ""
api_dev_key = API-KEY-HERE
api_option = paste
page = "/api/api_post.php"
regexp = "(.*)"