Hi,
Im trying to get all the friends that my user have on the buddy service, this is the code I'm using in Unity:
//Inside a Coroutine
bool gettingBuddiesFromServer = true;
IList<Buddy> buddies = null;
try
{
buddies = buddyService.GetAllFriends(m_pPlayerData.m_strUniqueID);
}
catch (App42Exception e)
{
Debug.Log("Exception On Getting all Friends: "+e);
Debug.Log("Error Codes:App["+e.GetAppErrorCode()+"] http["+e.GetHttpErrorCode()+"] Message["+e.GetMessage()+"]");
gettingBuddiesFromServer = false;
}
while(buddies == null && gettingBuddiesFromServer)
{
Debug.Log("Waiting for all buddies of this player");
yield return 0;
}
if(buddies.Count > 0)
{
//do something with the buddies
}
but every time I got the next message:
NotSupportedException: https://api.shephertz.com/cloud/1.0/buddy/friends/0f607264fc6318a92b9e13c65db7cd3c?
at System.Net.WebRequest.GetCreator (System.String prefix) [0x00000] in <filename unknown>:0
at System.Net.WebRequest.Create (System.Uri requestUri) [0x00000] in <filename unknown>:0
at System.Net.WebRequest.Create (System.String requestUriString) [0x00000] in <filename unknown>:0
at com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorAsync.ExecuteGet (System.String url, System.Collections.Generic.Dictionary`2 paramsDics, System.Collections.Generic.Dictionary`2 headerParams) [0x00000] in <filename unknown>:0
at com.shephertz.app42.paas.sdk.csharp.buddy.BuddyService.GetAllFriends (System.String userName) [0x00000] in <filename unknown>:0
at SocialManager+<GetAlreadyPlayingFriendsProcedure>c__Iterator56.MoveNext () [0x00000] in <filename unknown>:0
What is it wrong?