The App Garden

Create an AppAPI DocumentationFeedsWhat is the App Garden?

flickr.push.subscribe

In ur pandas, tickling ur unicorn

(this method is experimental and may change)

Authentication

This method requiresauthentication with 'read' permission.

Arguments

api_key (Required)
Your API application key.See here for more details.
topic (Required)
The type of subscription. Seeflickr.push.getTopics.
callback (Required)
The url for the subscription endpoint. Limited to 255 bytes, and must be unique for this user, i.e. no two subscriptions for a given user may use the same callback url.
verify (Required)
The verification mode, eithersync orasync. See theGoogle PubSubHubbub spec for details.
verify_token (Optional)
The verification token to be echoed back to the subscriber during the verification callback, as per theGoogle PubSubHubbub spec. Limited to 200 bytes.
lease_seconds (Optional)
Number of seconds for which the subscription will be valid. Legal values are 60 to 86400 (1 minute to 1 day). If not present, the subscription will be auto-renewing.
woe_ids (Optional)
A 32-bit integer for aWhere on Earth ID. Only valid iftopic isgeo.

The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. thelat, lon parameters will be ignored ifplace_ids is present, which will be ignored ifwoe_ids is present.
place_ids (Optional)
A comma-separated list of Flickr place IDs. Only valid iftopic isgeo.

The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. thelat, lon parameters will be ignored ifplace_ids is present, which will be ignored ifwoe_ids is present.
lat (Optional)
A latitude value, in decimal format. Only valid iftopic isgeo. Defines the latitude for a radial query centered around (lat, lon).

The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. thelat, lon parameters will be ignored ifplace_ids is present, which will be ignored ifwoe_ids is present.
lon (Optional)
A longitude value, in decimal format. Only valid iftopic isgeo. Defines the longitude for a radial query centered around (lat, lon).

The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. thelat, lon parameters will be ignored ifplace_ids is present, which will be ignored ifwoe_ids is present.
radius (Optional)
A radius value, in the units defined by radius_units. Only valid iftopic isgeo. Defines the radius of a circle for a radial query centered around (lat, lon). Default is 5 km.

The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. thelat, lon parameters will be ignored ifplace_ids is present, which will be ignored ifwoe_ids is present.
radius_units (Optional)
Defines the units for the radius parameter. Only valid iftopic isgeo. Options aremi andkm. Default iskm.

The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. thelat, lon parameters will be ignored ifplace_ids is present, which will be ignored ifwoe_ids is present.
accuracy (Optional)
Defines the minimum accuracy required for photos to be included in a subscription. Only valid iftopic isgeo Legal values are 1-16, default is 1 (i.e. any accuracy level).
  • World level is 1
  • Country is ~3
  • Region is ~6
  • City is ~11
  • Street is ~16
nsids (Optional)
A comma-separated list of nsids representing Flickr Commons institutions (seeflickr.commons.getInstitutions). Only valid iftopic iscommons. If not present this argument defaults to all Flickr Commons institutions.
tags (Optional)
A comma-separated list of strings to be used for tag subscriptions. Photos with one or more of the tags listed will be included in the subscription. Only valid if thetopic istags.

Example Response

This method has no specific response - It returns an empty success response if it completes without error.

Error Codes

1: Required parameter missing
One of the required arguments for the method was not provided.
2: Invalid parameter value
One of the arguments was specified with an illegal value.
3: Callback URL already in use for a different subscription
A different subscription already exists that uses the same callback URL.
4: Callback failed or invalid response
The verification callback failed, or failed to return the expected response to confirm the subscription.
5: Service currently available only to pro accounts
PuSH subscriptions are currently restricted to Pro account holders.
6: Subscription awaiting verification callback response - try again later
A subscription with those details exists already, but it is in a pending (non-verified) state. Please wait a bit for the verification callback to complete before attempting to update the subscription.
95: SSL is required
SSL is required to access the Flickr API.
96: Invalid signature
The passed signature was invalid.
97: Missing signature
The call required signing but no signature was sent.
98: Login failed / Invalid auth token
The login details or auth token passed were invalid.
99: User not logged in / Insufficient permissions
The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.
100: Invalid API Key
The API key passed was not valid or has expired.
105: Service currently unavailable
The requested service is temporarily unavailable.
106: Write operation failed
The requested operation failed due to a temporary issue.
111: Format "xxx" not found
The requested response format was not found.
112: Method "xxx" not found
The requested method was not found.
114: Invalid SOAP envelope
The SOAP envelope send in the request could not be parsed.
115: Invalid XML-RPC Method Call
The XML-RPC request document could not be parsed.
116: Bad URL found
One or more arguments contained a URL that has been used for abuse on Flickr.

API Explorer

API Explorer : flickr.push.subscribe