{"id":20733611,"url":"https://github.com/traitify/traitify-js-client","last_synced_at":"2025-04-23T22:56:29.866Z","repository":{"id":24012742,"uuid":"27396999","full_name":"traitify/traitify-js-client","owner":"traitify","description":null,"archived":true,"fork":false,"pushed_at":"2018-04-10T20:21:40.000Z","size":9024,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-23T22:56:06.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/traitify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-01T19:58:23.000Z","updated_at":"2025-02-03T18:40:46.000Z","dependencies_parsed_at":"2022-08-25T07:40:13.517Z","dependency_job_id":null,"html_url":"https://github.com/traitify/traitify-js-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitify%2Ftraitify-js-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitify%2Ftraitify-js-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitify%2Ftraitify-js-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traitify%2Ftraitify-js-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traitify","download_url":"https://codeload.github.com/traitify/traitify-js-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528720,"owners_count":21445513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T05:26:12.151Z","updated_at":"2025-04-23T22:56:29.844Z","avatar_url":"https://github.com/traitify.png","language":"CoffeeScript","readme":"Traitify.js\n===============\n\nThis package does not require jQuery, as it is a standalone encapsulated library. It does however require a browser with the ability to make cors requests (currently only supports ie8 and up, chrome, safari, and firefox).\n\n### Assessment id and public key required!\nFor instructions on obtaining an assessment id and a public key visit:\n[https://developer.traitify.com](https://developer.traitify.com)\n\n### Using The Latest and Greatest(Edge)!\nFor directions on using the latest traitify js scroll to the bottom\n\n### Using Traitify JS UI:\nInclude the Traitify.js library:\n\n```xhtml\n\u003cscript src=\"https://cdn.traitify.com/lib/v1.js\"\u003e\u003c/script\u003e\n```\n\nThe following javascript will initialize with the above html:\n```HTML\n\u003cscript\u003e\n  Traitify.setPublicKey(\"8asdf8sda-f98as-df8ads-fadsf\"); // Example Public Key\n  Traitify.setHost(\"api-sandbox.traitify.com\"); // Example host url (Defaults to api.traitify.com)\n  Traitify.setVersion(\"v1\"); // Example Version\n  var assessmentId = \"34aeraw23-3a43a32-234a34as42\"; // Example Assessment id\n\u003c/script\u003e\n```\n\n===============\n### Using Traitify JS API CLIENT:\n```xhtml\n\u003cscript src=\"https://cdn.traitify.com/lib/v1.js\"\u003e\u003c/script\u003e\n```\n\n##### Get Decks\n```JavaScript\nTraitify.getDecks(\"assessment id\").then(function(data){\n  console.log(data)\n})\n```\n\n##### Get Slides\n```JavaScript\nTraitify.getSlides(\"assessment id\").then(function(data){\n  console.log(data)\n})\n```\n\n##### Add Slide\n```JavaScript\nTraitify.addSlide(\"assessment id\").then(function(data){\n  console.log(data)\n})\n```\n\n##### Get Personality Traits\n```JavaScript\nTraitify.getPersonalityTraits(\"assessment id\").then(function(data){\n  console.log(data)\n})\n```\n\n##### Get Personality Types\n```JavaScript\nTraitify.getPersonalityTypes(\"assessment id\").then(function(data){\n  console.log(data)\n})\n```\n\n##### Get Personality Blend\n```JavaScript\nTraitify.get(\"/assessments/+\"assessmentId+\"?data=blend\u0026image_pack=linear\").then(function(data){\n  console.log(data)\n})\n```\n\n##### Get Careers\n```JavaScript\nTraitify.getCareers(\"assessment id\", function(data){\n  console.log(data)\n})\n```\n\n##### Get Slides Using URL\n```JavaScript\nTraitify.get(\"/assessments/\"+assessmentId+\"/slides\").then(function(data){\n  console.log(data)\n})\n```\n\n##### Get Slides With JSON CamelCase\n```JavaScript\n/* CamelCase instead of Underscore */\nTraitify.setBeautify(true)\nTraitify.getSlides(assessmentId).then(function(data){\n  console.log(data)\n})\n```\n\n### Using Edge\nWarning, things may break if you use edge, it is not stable, and is not intended to be. If you're looking for a stable deployment then use the v1 bundle from the above cdn.\n```xhtml\n\u003cscript src=\"https://cdn.traitify.com/lib/edge.js\"\u003e\u003c/script\u003e\n```\n\n### Contributing\n#### Building, Testing and Bundling:\n```Shell\n$ cake watch\n$ cake build\n$ cake bundle\n$ cake test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraitify%2Ftraitify-js-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraitify%2Ftraitify-js-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraitify%2Ftraitify-js-client/lists"}