question

Syed Aamir Suhail avatar image
Syed Aamir Suhail asked

Get List of published UGC items by all users,UGC how to get list of published items

i created ugc items and have published, i am able to see the item in dashboard, i am not sure which api to use to fetch all or certain amount items from published list.

i tried GetItems() but i am getting below error. private void GetMaps() { GetItemsRequest request = new GetItemsRequest(); request.Entity = GetEntityKey(); PlayFabEconomyAPI.GetItems(request, HandleGetMapSuccess, HandleFailure); }

Failed: Provide either Ids or AlternateIds. Both are empty.

where as SearchItems, always returns 0 count despite item being available in dashboard

[ContextMenu("SearchMaps")] private void SearchMaps() { SearchItemsRequest request = new SearchItemsRequest(); request.Entity = GetEntityKey(); PlayFabEconomyAPI.SearchItems(request, HandleSeaarchMapSuccess, HandleFailure); }

please tell me which api to use to fetch list of published UGC items.

,i created ugc items and have published, i am able to see the item in dashboard, i am not sure which api to use to fetch all or certain amount items from published list.

i tried GetItems() but i am getting below error. private void GetMaps() { GetItemsRequest request = new GetItemsRequest(); request.Entity = GetEntityKey(); PlayFabEconomyAPI.GetItems(request, HandleGetMapSuccess, HandleFailure); }

Failed: Provide either Ids or AlternateIds. Both are empty.

where as SearchItems, always returns 0 count despite item being available in dashboard

[ContextMenu("SearchMaps")] private void SearchMaps() { SearchItemsRequest request = new SearchItemsRequest(); request.Entity = GetEntityKey(); PlayFabEconomyAPI.SearchItems(request, HandleSeaarchMapSuccess, HandleFailure); }

unity3dIn-Game EconomyContent
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Syed Aamir Suhail avatar image
Syed Aamir Suhail answered

SearchItems() is working i was logging it wrongly.

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Neils Shi avatar image Neils Shi commented ·

I'm glad you solved it, feel free to let me know if there are any other questions.

0 Likes 0 ·
Syed Aamir Suhail avatar image Syed Aamir Suhail Neils Shi commented ·

yes, i am facing issue with getting content from search items, so i fetch items from search, i get all details, but the content object is always empty. how can i get the data for it.

0 Likes 0 ·
Syed Aamir Suhail avatar image Syed Aamir Suhail Neils Shi commented ·

i got the fix of it aswell. just added request.Select = "contents"; to fetch it.

0 Likes 0 ·
Neils Shi avatar image Neils Shi Syed Aamir Suhail commented ·

Thanks for your sharing.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.