与zoho api合作

时间:2018-02-13 07:06:24

标签: rest api get postman zoho

我正在研究ZOHO API's。使用POSTMAN我正在尝试GET项目的详细信息。 API如下

GET  /portal/[PORTALID]/projects/[PROJECTID]/
Sample Response
Status: 200 Success

Content Type: application/json;charset=utf-8
{
"projects": [{
    "id": 170876000000765009,
    "task_count": {
        "open": 6,
        "closed": 7
    },
    "milestone_count": {
        "open": 2,
        "closed": 1
    },
    "bug_count": {
        "open": 2,
        "closed": 1
    },
    "name": "Website Design Templates",
    "status": "active",
    "created_date": "10-22-2012 02:45 PM",
    "created_date_long": 1350926134092,
    "description": "This project is to discuss different design templates to build a website",
    "owner_name": "Patricia Boyle",
    "owner_id": "2060758",
    "link": {
        "self": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/"
        },
        "activity": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/activities/"
        },
        "status": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/statuses/"
        },
        "milestone": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/milestones/"
        },
        "tasklist": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/tasklists/"
        },
        "task": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/tasks/"
        },
        "bug": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/bugs/"
        },
        "timesheet": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/logs/"
        },
        "event": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/events/"
        },
        "document": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/documents/"
        },
        "folder": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/folders/"
        },
        "forum": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/forums/"
        },
        "user": {
            "url": "https://projectsapi.zoho.com/restapi/portal/
                    2063927/projects/170876000000765009/users/"
        }
    }
}]
}

链接为here

但是当我尝试获取细节时。它给了我404错误。以下是我的要求。

https://bugtracker.zoho.com/portal/fasi/projects/7958751212/
Authentication Token: c1d5c4cfd0bfcfd8b10caf0b174hhh

enter image description here

此外,在链接中,没有给出如何发送请求的任何内容。所有都有样品响应。

如何发送正确的请求以获取详细信息?

任何帮助都将受到高度赞赏。

0 个答案:

没有答案