{"_id":"5770617ad7c6cd1900a57e7b","__v":1,"category":{"_id":"57706179d7c6cd1900a57e70","version":"57706179d7c6cd1900a57e6e","__v":0,"project":"56830b883b87430d00483b3d","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-29T22:39:05.596Z","from_sync":false,"order":1,"slug":"documentation","title":"Documentation"},"version":{"_id":"57706179d7c6cd1900a57e6e","project":"56830b883b87430d00483b3d","__v":1,"createdAt":"2016-06-26T23:12:57.873Z","releaseDate":"2016-06-26T23:12:57.873Z","categories":["57706179d7c6cd1900a57e6f","57706179d7c6cd1900a57e70","57706179d7c6cd1900a57e71","57706179d7c6cd1900a57e72","57706179d7c6cd1900a57e73","57706179d7c6cd1900a57e74"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"user":"56830b4870331a0d00484a77","project":"56830b883b87430d00483b3d","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-10T09:53:12.248Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":7,"body":"If you want, you can configure the `apingDefaultSettings` in **`aping-config.js`**. This default settings could be overwritten by every aping instance via data-attributes.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"\\\"use strict\\\";\\nangular.module('jtt_aping').config(['$provide', function ($provide) {\\n    $provide.value(\\\"apingDefaultSettings\\\", {\\n        templateUrl : \\\"<PATH_TO_YOUR_DEFAULT_DESIGN>\\\",\\n        items : \\\"<ITEMS_PER_REQUEST>\\\", //items per request\\n        maxItems: \\\"<MAX_ITEMS_PER_APING>\\\", //max items per aping instance\\n        orderBy : \\\"<ORDER_BY_PROPERTY>\\\", // order result list by property\\n        orderReverse : \\\"<ORDER_REVERSE_FLAG>\\\", //\\\"true\\\" or \\\"false\\\"\\n        model: \\\"<CHOSEN_DATA_MODEL>\\\", //e.g. \\\"social\\\", \\\"event\\\", \\\"video\\\", ...\\n        getNativeData: false, // Use \\\"true\\\" for getting native data from plugins\\n        removeDoubles: false, // Use \\\"true\\\" to remove identical objects from result array\\n        apingApiKeys: {\\n            youtube : [{'apiKey': '<YOUR_YOUTUBE_API_KEY>'}],\\n            facebook: [{'access_token': '<YOUR_FACEBOOK_TOKEN>'}],\\n            twitter: [{'bearer_token': '<YOUR_TWITTER_BEARER_TOKEN>'}],\\n            vimeo: [{'access_token': '<YOUR_VIMEO_TOKEN>'}],\\n            tumblr: [{'api_key': '<YOUR_TUMBLR_API_KEY>'}],\\n            // ...\\n        }\\n    });\\n}]);\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"configuration","type":"basic","title":"Configuration File"}

Configuration File


If you want, you can configure the `apingDefaultSettings` in **`aping-config.js`**. This default settings could be overwritten by every aping instance via data-attributes. [block:code] { "codes": [ { "code": "\"use strict\";\nangular.module('jtt_aping').config(['$provide', function ($provide) {\n $provide.value(\"apingDefaultSettings\", {\n templateUrl : \"<PATH_TO_YOUR_DEFAULT_DESIGN>\",\n items : \"<ITEMS_PER_REQUEST>\", //items per request\n maxItems: \"<MAX_ITEMS_PER_APING>\", //max items per aping instance\n orderBy : \"<ORDER_BY_PROPERTY>\", // order result list by property\n orderReverse : \"<ORDER_REVERSE_FLAG>\", //\"true\" or \"false\"\n model: \"<CHOSEN_DATA_MODEL>\", //e.g. \"social\", \"event\", \"video\", ...\n getNativeData: false, // Use \"true\" for getting native data from plugins\n removeDoubles: false, // Use \"true\" to remove identical objects from result array\n apingApiKeys: {\n youtube : [{'apiKey': '<YOUR_YOUTUBE_API_KEY>'}],\n facebook: [{'access_token': '<YOUR_FACEBOOK_TOKEN>'}],\n twitter: [{'bearer_token': '<YOUR_TWITTER_BEARER_TOKEN>'}],\n vimeo: [{'access_token': '<YOUR_VIMEO_TOKEN>'}],\n tumblr: [{'api_key': '<YOUR_TUMBLR_API_KEY>'}],\n // ...\n }\n });\n}]);", "language": "javascript" } ] } [/block]