Filter Activity Stories from rest Endpoint

we are trying to get the Activity stories by rest API using 

api.ashx/v2/stories.xml (or .json)  List Activity Story REST Endpoint  

Filters RestActivityStoryFilters Filters Optional

In the documentation, it not clear how to apply filters 

we need only application-specific content in the JSON data like a blogpost, forum threads,etc .. but not user joined to a group,user1,user2 are friends ......

How can i apply filters only to achieve application-specific content . 

Parents
  • The filters are added as dynamic parameters, each taking the format _Filters_{ActivityStoryTypeId} and set to a comma-separated value for the filter options of: User, All, Followed. For example, to include all blog posts and forum threads, the GET parameters would be:

    _Filters_948477cb-045b-4077-8bf1-7ce1a091db11=All&_Filters_0a680cf3-f196-48c5-92db-df8cebe3fe92=All

    To get a list of all available story types in your community, you can run the following script in the Script Sandbox in Widget Studio: 

    <ul>
    #foreach($t in $core_v2_activityStory.ListActivityStoryTypes())
        <li>$t.ActivityStoryTypeId: $t.Name</li>
    #end
    </ul>

    On a default installation, this would provide the IDs:

    • 919abea5-6ce6-4b34-a6a6-baf8b392af90: Achievement
    • 0f7404b7-d8f2-4a1b-97c9-175af1be4570: External Messages
    • ecf7e9ef-76f0-447c-9b25-2a531c7bb651: Friendship
    • a23334fb-669a-421d-85e9-1945a7b80581: Groups
    • 14656a25-9a03-4311-b8e3-46cef57ac02b: Join Group
    • 276a9e51-2839-4ae9-8291-e3f24b49cbc4: Status Messages
    • e9dd0cb7-adf7-4518-b096-1b00f3f51246: Profile Avatar
    • 3d10e9df-357b-4203-8f7d-3bf15f60fd61: Join Community
    • aba4d846-14b9-464f-8318-793d8a963fe1: Article
    • 948477cb-045b-4077-8bf1-7ce1a091db11: Blog Posts
    • 44a697e2-d1b3-48f6-9519-45cfa2bfc4fd: Blog
    • a481f65a-7c74-4bde-a8da-44f562aaed91: Calendars
    • 4938dae8-d688-4410-9d8f-82421f8ee2be: Calendar Events
    • acf00be6-5717-4a25-a17d-e2036c694444: Forums
    • 0a680cf3-f196-48c5-92db-df8cebe3fe92: Forum Threads
    • f0192462-ea3f-4eef-9a4d-4e896c049aac: Idea Activity
    • 7274e046-a373-482f-837c-ee44ac4c54e5: Ideation Activity
    • edebd6ad-a45a-470f-89e6-3dfc31714bd6: Galleries
    • 333cc77c-0196-44c5-aefa-6e35a0011ee8: Files
    • cf26068c-f664-4050-bf69-f1d5c3e7eb1a: Wiki Pages
    • 432f675c-15bb-429c-98a9-9e99d539587b: Wikis
Reply
  • The filters are added as dynamic parameters, each taking the format _Filters_{ActivityStoryTypeId} and set to a comma-separated value for the filter options of: User, All, Followed. For example, to include all blog posts and forum threads, the GET parameters would be:

    _Filters_948477cb-045b-4077-8bf1-7ce1a091db11=All&_Filters_0a680cf3-f196-48c5-92db-df8cebe3fe92=All

    To get a list of all available story types in your community, you can run the following script in the Script Sandbox in Widget Studio: 

    <ul>
    #foreach($t in $core_v2_activityStory.ListActivityStoryTypes())
        <li>$t.ActivityStoryTypeId: $t.Name</li>
    #end
    </ul>

    On a default installation, this would provide the IDs:

    • 919abea5-6ce6-4b34-a6a6-baf8b392af90: Achievement
    • 0f7404b7-d8f2-4a1b-97c9-175af1be4570: External Messages
    • ecf7e9ef-76f0-447c-9b25-2a531c7bb651: Friendship
    • a23334fb-669a-421d-85e9-1945a7b80581: Groups
    • 14656a25-9a03-4311-b8e3-46cef57ac02b: Join Group
    • 276a9e51-2839-4ae9-8291-e3f24b49cbc4: Status Messages
    • e9dd0cb7-adf7-4518-b096-1b00f3f51246: Profile Avatar
    • 3d10e9df-357b-4203-8f7d-3bf15f60fd61: Join Community
    • aba4d846-14b9-464f-8318-793d8a963fe1: Article
    • 948477cb-045b-4077-8bf1-7ce1a091db11: Blog Posts
    • 44a697e2-d1b3-48f6-9519-45cfa2bfc4fd: Blog
    • a481f65a-7c74-4bde-a8da-44f562aaed91: Calendars
    • 4938dae8-d688-4410-9d8f-82421f8ee2be: Calendar Events
    • acf00be6-5717-4a25-a17d-e2036c694444: Forums
    • 0a680cf3-f196-48c5-92db-df8cebe3fe92: Forum Threads
    • f0192462-ea3f-4eef-9a4d-4e896c049aac: Idea Activity
    • 7274e046-a373-482f-837c-ee44ac4c54e5: Ideation Activity
    • edebd6ad-a45a-470f-89e6-3dfc31714bd6: Galleries
    • 333cc77c-0196-44c5-aefa-6e35a0011ee8: Files
    • cf26068c-f664-4050-bf69-f1d5c3e7eb1a: Wiki Pages
    • 432f675c-15bb-429c-98a9-9e99d539587b: Wikis
Children