URL: v3/article

Method: POST

Query Parameters

 

Parameter Type Possible Values Required/Optional Description
is_comment_enabled boolean 0,1 optional If this field is enabled while creating the Article, then users’s can comment on the Article. If this field disabled then user’s can’t comment on the Article.
publish_time datetime Mon, 01 Feb 2021 08:31:39 GMT required If someone published an Article immediately with current date and time, then the Article will be published  immediately to world wide. And suppose if someone is publishing Article 1 hour later from the current time, then after one hour that Article will be published to world wide.

Note: previous parameters year, day, month and minute will not be used in future and was removed from this POST API. Instead of this we are using  publish_time and passing date and time as shown above. We are making the use of same API for create and edit.

Response:

{

   "success": true,

   "message":"Article updated successfully"

}

 

URL: v3/api/edit/article/79

Method: GET

Parameter Type Possible Values Required/Optional Description
is_comment_enabled boolean 0,1 optional If this field is enabled while creating the Article, then users’s can comment on the Article. If this field disabled then user’s can’t comment on the Article.

Note: “is_comment_enabled” parameter was added to the existing GET API.

 

Response:

{

   "success": true,

   "message":article": {
            "id": 45,
            "name": "Test Arbind Article",
            "slug": "test-arbind-article",
            "description": "test",
            "status": 0,
            "type": 1,
            "publish_time": "2021-01-22 03:10:34 GMT",
            "created_at": "2021-01-22 03:10:34",
            "updated_at": "2021-02-01 05:42:42",
            "template": null,
            "seo_title": "Test Arbind Article",
            "meta_description": "test...",
            "visible_to": "all_users",
            "author": {
                "id": 1,
                "name": "Arbind Kumar",
                "profile_pic": "https://secure.gravatar.com/avatar/965da31b8a2240f04d7a2b24daf2af12?s=80&r=g&d=mm"
            },
            "is_comment_enabled": 1,
            "tags": [
                {
                    "id": 1,
                    "name": "Test Tag",
                    "pivot": {
                        "article_id": 45,
                        "tag_id": 1
                    }
                }
            ],
            "category": [
                {
                    "id": 5,
                    "name": "Hello test 2"
                }
            ]
        }
    }

}