Search API

Follow

·

Get Training

Search is also available in the Box APIs: http://developers.box.com/docs/#search

 

Request

curl https://api.box.com/2.0/search?query=sso&limit=1&offset=0 -H "Authorization: Bearer ACCESS_TOKEN"

 

Response

{

    "total_count": 10,

    "entries": [

        {

            "type": "file",

            "id": "5815577226",

            "sequence_id": "0",

            "etag": "0",

            "sha1": "2ef5159f39d13c7dd47761e3d8d3211a1fc744db",

            "name": "SSO Overview.doc",

            "description": "",

            "size": 305664,

            "path_collection": {

                "total_count": 3,

                "entries": [

                    {

                        "type": "folder",

                        "id": "0",

                        "sequence_id": null,

                        "etag": null,

                        "name": "All Files"

                    },

                    {

                        "type": "folder",

                        "id": "611520438",

                        "sequence_id": "0",

                        "etag": "0",

                        "name": "target"

                    },

                    {

                        "type": "folder",

                        "id": "611521582",

                        "sequence_id": "0",

                        "etag": "0",

                        "name": "original subfolder"

                    }

                ]

            },

            "created_at": "2013-01-28T08:24:02-08:00",

            "modified_at": "2013-01-28T08:24:02-08:00",

            "trashed_at": null,

            "purged_at": null,

            "content_created_at": "2013-01-28T08:24:02-08:00",

            "content_modified_at": "2013-01-28T08:24:02-08:00",

            "created_by": {

                "type": "user",

                "id": "186142695",

                "name": "test@user.com",

                "login": " test@user.com"

            },

            "modified_by": {

                "type": "user",

                "id": "186142695",

                "name": "test@user.com",

                "login": "test@user.com"

            },

            "owned_by": {

                "type": "user",

                "id": "186142695",

                "name": "test@user.com",

                "login": "test@user.com"

            },

            "shared_link": null,

            "parent": {

                "type": "folder",

                "id": "611521582",

                "sequence_id": "0",

                "etag": "0",

                "name": "SSO Documentation"

            },

            "item_status": "active"

        }

    ],

    "limit": 1,

    "offset": 0

 

}

 

Next: Empowering Individuals And Common Roadblocks

Previous: Search On Mobile

Was this article helpful?
0 out of 0 found this helpful