{ "info": { "author": "Brand a Trend GmbH", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "# Summics REST API\nThe *Summics API* is available at `https://api.summics.com`.\nEvery Request should be at most 100MB of content. If it is more you will receive an 413 error code.\n\n# Authentication [/auth]\nProvides a token to be included with every REST request. The token expires when it is not used for 6 hours.\n\n## Authenticate [POST]\n\n+ Parameters\n + `clientId` Your client ID string.\n + `secret` Your API secret key.\n\n+ Response 200 (application/json)\n\n {\n \"token\": \n }\n\n# Authorization\nAll further API calls requires an API `token` in the request `Header`.\n\n+ Headers\n\n Authorization: \n\n# Projects [/projects]\n\n## List projects [GET]\nRetrieves a list with all projects.\n\n+ Response 200 (application/json)\n\n [\n {\n \"id\": ,\n \"name\": ,\n \"sources\": [\n \"id\": ,\n \"name\": \n ]\n },\n ...\n ]\n\n# Topics [/topics]\n\n## List topics [GET]\nRetrieves a list with all topics for a given `projectId`. It *must* be any ID returned by `/projects` request.\n\n+ Parameters\n + `projectId` The ID of a project.\n\n+ Response 200 (application/json)\n\n [\n {\n \"id\": ,\n \"name\": \n },\n ...\n ]\n\n# Topics Overview [/topics/overview]\n\n## Lists all active topics within a time period [GET]\nRetrieves a list with all `sources`'s active topics between `fromDate` and `toDate` . `sources` *must* an array with IDs returned by `/projects` request.\n\n+ Parameters\n + `sources`:\n `[]` An array with source IDs that were returned with a project.\n + `fromDate`:\n `` It *must* be an **ISO Date** string.\n + `toDate`:\n `` It *must* be an **ISO Date** string.\n\n+ Response 200 (application/json)\n\n [\n {\n \"id\": ,\n \"name\": ,\n \"postCount\": {\n \"current\": ,\n \"previous: \n },\n \"charCount\": {\n \"current\": ,\n \"previous: \n },\n \"userCount\": {\n \"current\": ,\n \"previous: \n },\n \"sentimentScore\": {\n \"current\": ,\n \"previous: \n }\n },\n ...\n ]\n\n# Texts [/texts]\n\n## List texts [GET]\nRetrieves a list with all texts for the parameters below.\n\n+ Parameters\n + `sources`:\n `[]` An array with source IDs that were returned with a project.\n + `fromDate`:\n `` It *must* be an **ISO Date** string.\n + `toDate`:\n `` It *must* be an **ISO Date** string.\n + `topics`:\n `[]` *Optional* An array with topic IDs that were returned with `/topics` request.\n\n+ Response 200 (application/json)\n\n [\n {\n \"id\": ,\n \"text\": ,\n \"sentiment\": ,\n \"author\": ,\n \"timestamp\": ,\n \"source\": ,\n \"postLink\": ,\n \"topics\": [\n {\n \"id\": ,\n \"name\": \n }\n ]\n },\n ...\n ]\n\n## Add Texts [PUT]\nPushes some texts into Summics.\n\n+ Parameters\n + `sourceId`:\n `` The ID of the source to add the texts to. Source IDs are provided together with projects.\n + `texts`:\n `[]` The list of texts to insert. See Structure below.\n + `text`:\n `` The text body\n + `postId`:\n `` The unique identifier of a text\n + `timestamp`:\n `` The timestamp of the text\n + `user`:\n `` The author\n + `customField1`\n `` Custom field value\n + `customField2`\n `` Custom field value\n\n\n+ Response 200 (application/json)\n\n {\n \"imported\": [],\n \"errors\": [\n {\n \"original\": { ... },\n \"error\": \n }\n ]\n }\n\n### Additional Information\nEach text is processed individually. If an error occurs on one text the other texts may be imported nonetheless.\nThe result indicates which texts where imported correctly. For each erroneous text the reason is returned.\n\nThe `postId` supplied with each text should be unique within the context of one source.\n*If a text with the same ID already exists, it will be overwritten.*\n\nThe request only returns after the initial processing of all texts is finished, so it may take some time.\n\nThe `timestamp` should be a valid ISO 8601 string.\n\nThe fields `customField1`, `customField2` ... are custom defined fields. You can create an unlimited amount of custom fields\nand name them anything except for the predefined names (user, postId, text etc.).\n\n# Dashboard [/dashboard]\n\n## View dashboard data [GET]\nThe information displayed on *Summics Dashboard* is returned.\n\n+ Parameters\n + `sources`:\n `[]` An array with source IDs that were returned with a project.\n + `fromDate`: \n `` It *must* be an **ISO Date** string.\n + `toDate`: \n `` It *must* be an **ISO Date** string.\n\n+ Response 200 (application/json)\n\n {\n \"contentAndSentiment\": ,\n \"activityPerHour\": ,\n \"generalActivity\": \n }\n\n + `contentAndSentiment`:\n\n {\n \"contentDistribution\":\n {\n \"meaningful\": ,\n \"noTopics\": ,\n \"total\": \n },\n \"sentimentDistribution\":\n {\n \"negativeCount\": ,\n \"neutralCount\": ,\n \"positiveCount\": \n }\n }\n \n + `activityPerHour`:\n\n [\n {\n \"hour\": ,\n \"count\": \n },\n ...\n ]\n \n + `generalActivity`:\n\n {\n \"timestamp\": ,\n \"source\": ,\n \"charCount\": ,\n \"textCount\": ,\n \"negativeCount\": ,\n \"neutralCount\": ,\n \"positiveCount\": \n }\n", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "BSD-2-Clause, see LICENCE.txt", "maintainer": null, "maintainer_email": null, "name": "summics", "package_url": "https://pypi.org/project/summics/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/summics/", "project_urls": { "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/summics/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Summics API", "version": "1.1.0" }, "last_serial": 1617677, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "fdda735db7a33fdf3ff685dbe811f2ba", "sha256": "ccc4adac388ee41c621e8ff0427710ad60ee3ff2eb16b89f851c230ffac39079" }, "downloads": -1, "filename": "summics-1.1.0.zip", "has_sig": false, "md5_digest": "fdda735db7a33fdf3ff685dbe811f2ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3528, "upload_time": "2015-07-03T07:04:13", "url": "https://files.pythonhosted.org/packages/93/a8/bda8bc7bcb244540de4a317c70d3888046f275be79f7c0ff680bf61db974/summics-1.1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fdda735db7a33fdf3ff685dbe811f2ba", "sha256": "ccc4adac388ee41c621e8ff0427710ad60ee3ff2eb16b89f851c230ffac39079" }, "downloads": -1, "filename": "summics-1.1.0.zip", "has_sig": false, "md5_digest": "fdda735db7a33fdf3ff685dbe811f2ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3528, "upload_time": "2015-07-03T07:04:13", "url": "https://files.pythonhosted.org/packages/93/a8/bda8bc7bcb244540de4a317c70d3888046f275be79f7c0ff680bf61db974/summics-1.1.0.zip" } ] }