Forum Discussion

nils-drews's avatar
10 years ago

Pull down TKB

I'd like to pull down the tkb structure and all the tkb's in it. I see that the tkbs are structured in parallel to categories and boards. But in the API they are asscoaited with it? And if I go through my top level categiries and request the /tkb endpoint I always get an empty result.

 

Can someone explain how to download a tkb structure?

 

Bye, Nils

  • Tim_h's avatar
    Tim_h
    10 years ago

    Hey nils-drews , the TKB's created within a category exist within the category itself with a different interaction style.

     

    The rest call is /CommunityName/restapi/vc/categories/id/CategoryID 

    If you use your CommunityName and the CategoryId (the word) in the call, the XML response is all of the objects within the category.

     

    You can append "/boards/style/tkb" onto the end to only get the TKB to return.

    TKB's have an interaction style of "TKB", and forums have "board".

    A TKB is just a board with a different style attached to it :)

     

    But the auto created TKB's seem to be different.

     

    They look like they live in a hidden category underneath the board.
    So you'll need to append "/boards/nested" onto the end.

     

    CommunityName/restapi/vc/categories/id/CategoryId/boards/nested

    And you can filter the XML for the interaction style "tkb"

     

    You can also just append @tkb onto the id of a board to get the associated TKB for it.

     

    So the calls for the recent threads in a board and it's TKB would be

    (Our board name is tablets)

     

    /restapi/vc/boards/id/tablets@tkb/threads/recent

    /restapi/vc/boards/id/tablets/threads/recent

     

    Tim

     

     

    • Tim_h's avatar
      Tim_h
      Boss

      Hey nils-drews , the TKB's created within a category exist within the category itself with a different interaction style.

       

      The rest call is /CommunityName/restapi/vc/categories/id/CategoryID 

      If you use your CommunityName and the CategoryId (the word) in the call, the XML response is all of the objects within the category.

       

      You can append "/boards/style/tkb" onto the end to only get the TKB to return.

      TKB's have an interaction style of "TKB", and forums have "board".

      A TKB is just a board with a different style attached to it :)

       

      But the auto created TKB's seem to be different.

       

      They look like they live in a hidden category underneath the board.
      So you'll need to append "/boards/nested" onto the end.

       

      CommunityName/restapi/vc/categories/id/CategoryId/boards/nested

      And you can filter the XML for the interaction style "tkb"

       

      You can also just append @tkb onto the id of a board to get the associated TKB for it.

       

      So the calls for the recent threads in a board and it's TKB would be

      (Our board name is tablets)

       

      /restapi/vc/boards/id/tablets@tkb/threads/recent

      /restapi/vc/boards/id/tablets/threads/recent

       

      Tim