Hello everyone,
I've got a little problem with the REST API and its function fetching users' contacts by category name. According to documentation, this can be obtained with the request to the following URI:
http://social.yahooapis.com/v1/user/{guid}/category/{category-name}/contacts
I'm using the python libraries. The call above works perfectly when the category name is defined in ASCII letters, nevertheless problems arise when the category-name parameter is the Unicode text. In such case server responds with errors 404, 500 or even 401 - "Please provide valid credentials".
My exemplary name of the contact category is following:
category = '%u017C%u0142%u0107' -> '\xc5\xbc\xc3\xb3\xc5\x82\xc4\x87'
category.decode('utf-8') -> u'\u017c\xf3\u0142\u0107'
import urllib
urllib.quote(category) -> '%C5%BC%C3%B3%C5%82%C4%87'
All of the above values substituted to the URI as the category-name parameter result in error. What is the correct way of fetching the contacts that belong to a given category?
Maybe is there some other API call that allows to fetch contacts by the category ID?