|
| 1 | +--- |
| 2 | +kind: change |
| 3 | +title: Changing organization feeds in the Feeds API |
| 4 | +created_at: 2014-09-12 |
| 5 | +author_name: mastahyeti |
| 6 | +--- |
| 7 | + |
| 8 | +We have deprecated the `current_user_organization_url` attribute and the |
| 9 | +`current_user_organization.href` attribute in the [Feeds API][docs]. If you make |
| 10 | +use of these attributes, you'll want to update your code to use the new |
| 11 | +`current_user_organization_urls` attribute instead. |
| 12 | + |
| 13 | +### Changes to the deprecated attributes |
| 14 | + |
| 15 | +Previously, the deprecated attributes returned URI template. For example: |
| 16 | + |
| 17 | +<pre><code class="language-javascript"> |
| 18 | +"current_user_organization_url": |
| 19 | + "https://github.com/organizations/{org}/mastahyeti.private.atom?token=abc123" |
| 20 | +</code></pre> |
| 21 | + |
| 22 | +The template included a deprecated authentication token. Our new tokens are |
| 23 | +valid only for a concrete feed URL (not for a URI template). Because the |
| 24 | +deprecated attributes were templates and did not specify a concrete URL, the API |
| 25 | +could not provide a token that could be used for organization feeds. |
| 26 | + |
| 27 | +Starting today, the API returns empty values for the deprecated attributes. |
| 28 | + |
| 29 | +### New attribute for organization feeds |
| 30 | + |
| 31 | +In order to preserve the functionality of this API, we have added a new |
| 32 | +attribute that lists specific Atom feed urls for each of the user's |
| 33 | +organizations. |
| 34 | + |
| 35 | +<pre><code class="language-javascript"> |
| 36 | +"current_user_organization_urls": [ |
| 37 | + "https://github.com/organizations/github/mastahyeti.private.atom?token=abc123" |
| 38 | + "https://github.com/organizations/requests/mastahyeti.private.atom?token=token=def456" |
| 39 | +] |
| 40 | +</code></pre> |
| 41 | + |
| 42 | +Check out the updated [Feeds API documentation][docs] for the new fields. If you |
| 43 | +have any questions or feedback, please [get drop us a line][contact]. |
| 44 | + |
| 45 | +[docs]: /v3/activity/feeds/ |
| 46 | +[contact]: https://github.com/contact?form[subject]=Changing+organization+feeds+in+the+Feeds+API |
0 commit comments