{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Configuration File","type":"basic","slug":"configuration","excerpt":"","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]","updates":[],"order":7,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5770617ad7c6cd1900a57e7b","__v":1,"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Documentation","slug":"documentation","order":1,"from_sync":false,"reference":false,"_id":"57706179d7c6cd1900a57e70","version":"57706179d7c6cd1900a57e6e","__v":0,"project":"56830b883b87430d00483b3d","createdAt":"2015-12-29T22:39:05.596Z"},"version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["57706179d7c6cd1900a57e6f","57706179d7c6cd1900a57e70","57706179d7c6cd1900a57e71","57706179d7c6cd1900a57e72","57706179d7c6cd1900a57e73","57706179d7c6cd1900a57e74"],"_id":"57706179d7c6cd1900a57e6e","project":"56830b883b87430d00483b3d","__v":1,"createdAt":"2016-06-26T23:12:57.873Z","releaseDate":"2016-06-26T23:12:57.873Z"},"createdAt":"2016-01-10T09:53:12.248Z","user":"56830b4870331a0d00484a77","project":"56830b883b87430d00483b3d","githubsync":""}

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]