Flickrex.Flickr.Push (flickrex v0.8.1) View Source

Link to this section Summary

Functions

Returns a list of the subscriptions for the logged-in user.

All the different flavours of anteater.

In ur pandas, tickling ur unicorn

Why would you want to do this?

Link to this section Types

Link to this section Functions

Link to this function

get_subscriptions(opts \\ [])

View Source

Specs

get_subscriptions(opts()) :: operation()

Returns a list of the subscriptions for the logged-in user.



<br>(this method is experimental and may change)

This method requires authentication with "read" permission.

Example response

%{
  "stat" => "ok",
  "subscriptions" => %{
    "subscription" => [
      %{
        "callback" => "http://example.com/contacts_photos_endpoint?user=12345",
        "date_create" => "1309293755",
        "expiry" => "1309380155",
        "lease_seconds" => "0",
        "pending" => "0",
        "topic" => "contacts_photos",
        "verify_attempts" => "0"
      },
      %{
        "callback" => "http://example.com/contacts_faves_endpoint?user=12345",
        "date_create" => "1309293785",
        "expiry" => "1309380185",
        "lease_seconds" => "0",
        "pending" => "0",
        "topic" => "contacts_faves",
        "verify_attempts" => "0"
      }
    ]
  }
}

Specs

get_topics(opts()) :: operation()

All the different flavours of anteater.



<br>(this method is experimental and may change)

This method does not require authentication.

Example response

%{
  "stat" => "ok",
  "topics" => %{
    "topic" => [%{"name" => "contacts_photos"}, %{"name" => "contacts_faves"}]
  }
}
Link to this function

subscribe(topic, callback, verify, opts \\ [])

View Source

Specs

subscribe(arg(), arg(), arg(), opts()) :: operation()

In ur pandas, tickling ur unicorn



<br>(this method is experimental and may change)

This method requires authentication with "read" permission.

Arguments

Options

  • verify_token - The verification token to be echoed back to the subscriber during the verification callback, as per the <a href="http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.html#subscribing">Google PubSubHubbub spec</a>. Limited to 200 bytes.

  • lease_seconds - 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 - A 32-bit integer for a <a href="http://developer.yahoo.com/geo/geoplanet/">Where on Earth ID</a>. Only valid if <code>topic</code> is <code>geo</code>. <br/><br/> The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. the <code>lat, lon</code> parameters will be ignored if <code>place_ids</code> is present, which will be ignored if <code>woe_ids</code> is present.

  • place_ids - A comma-separated list of Flickr place IDs. Only valid if <code>topic</code> is <code>geo</code>. <br/><br/> The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. the <code>lat, lon</code> parameters will be ignored if <code>place_ids</code> is present, which will be ignored if <code>woe_ids</code> is present.

  • lat - A latitude value, in decimal format. Only valid if <code>topic</code> is <code>geo</code>. Defines the latitude for a radial query centered around (lat, lon). <br/><br/> The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. the <code>lat, lon</code> parameters will be ignored if <code>place_ids</code> is present, which will be ignored if <code>woe_ids</code> is present.

  • lon - A longitude value, in decimal format. Only valid if <code>topic</code> is <code>geo</code>. Defines the longitude for a radial query centered around (lat, lon). <br/><br/> The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. the <code>lat, lon</code> parameters will be ignored if <code>place_ids</code> is present, which will be ignored if <code>woe_ids</code> is present.

  • radius - A radius value, in the units defined by radius_units. Only valid if <code>topic</code> is <code>geo</code>. Defines the radius of a circle for a radial query centered around (lat, lon). Default is 5 km. <br/><br/> The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. the <code>lat, lon</code> parameters will be ignored if <code>place_ids</code> is present, which will be ignored if <code>woe_ids</code> is present.

  • radius_units - Defines the units for the radius parameter. Only valid if <code>topic</code> is <code>geo</code>. Options are <code>mi</code> and <code>km</code>. Default is <code>km</code>. <br/><br/> The order of precedence for geo subscriptions is : woe ids, place ids, radial i.e. the <code>lat, lon</code> parameters will be ignored if <code>place_ids</code> is present, which will be ignored if <code>woe_ids</code> is present.

  • accuracy - Defines the minimum accuracy required for photos to be included in a subscription. Only valid if <code>topic</code> is <code>geo</code> Legal values are 1-16, default is 1 (i.e. any accuracy level). <ul> <li>World level is 1</li> <li>Country is ~3</li> <li>Region is ~6</li> <li>City is ~11</li> <li>Street is ~16</li> </ul>

  • nsids - A comma-separated list of nsids representing Flickr Commons institutions (see <a href="http://www.flickr.com/services/api/flickr.commons.getInstitutions.html">flickr.commons.getInstitutions</a>). Only valid if <code>topic</code> is <code>commons</code>. If not present this argument defaults to all Flickr Commons institutions.

  • tags - 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 the <code>topic</code> is <code>tags</code>.

Link to this function

unsubscribe(topic, callback, verify, opts \\ [])

View Source

Specs

unsubscribe(arg(), arg(), arg(), opts()) :: operation()

Why would you want to do this?



<br>(this method is experimental and may change)

This method requires authentication with "read" permission.

Arguments

Options