{"id":20444904,"url":"https://github.com/snapchat/business-sdk-v3-java","last_synced_at":"2025-08-17T20:11:06.715Z","repository":{"id":232547129,"uuid":"784038662","full_name":"Snapchat/business-sdk-v3-java","owner":"Snapchat","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-21T18:25:40.000Z","size":319,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T19:30:38.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snapchat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-09T04:09:52.000Z","updated_at":"2025-05-08T00:17:05.000Z","dependencies_parsed_at":"2024-07-30T02:25:04.097Z","dependency_job_id":"05659ed7-9ec1-4a75-bdcb-74657b649ae7","html_url":"https://github.com/Snapchat/business-sdk-v3-java","commit_stats":null,"previous_names":["snapchat/business-sdk-v3-java"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Snapchat/business-sdk-v3-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fbusiness-sdk-v3-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fbusiness-sdk-v3-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fbusiness-sdk-v3-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fbusiness-sdk-v3-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snapchat","download_url":"https://codeload.github.com/Snapchat/business-sdk-v3-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snapchat%2Fbusiness-sdk-v3-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899582,"owners_count":24664720,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-15T10:09:59.539Z","updated_at":"2025-08-17T20:11:06.706Z","avatar_url":"https://github.com/Snapchat.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# capi-v3-java\n\nSnap Conversions API V3\n- API version: 1.2.1\n\n\nBusiness SDK V3\nThe Business SDK V3 simplifies the setup and integration process for partners utilizing Snapchat's Conversion API.\n\n- Easy Authentication: Streamlined access to Snapchat services.\n- Simplified API Interactions: Intuitive commands and functions to communicate with the API.\n\nOur goal is to significantly reduce the time and effort required for sending events, making your development process smoother and more efficient.\n\n\n## Requirements\n\nBuilding the API client library requires:\n1. Java 1.8+\n2. Maven (3.8.3+)/Gradle (7.2+)\n\n## Installation\n\nTo install the API client library to your local Maven repository, simply execute:\n\n```shell\nmvn clean install\n```\n\nTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:\n\n```shell\nmvn clean deploy\n```\n\nRefer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.\n\n### Maven users\n\nAdd this dependency to your project's POM:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.snap.business.sdk.v3\u003c/groupId\u003e\n  \u003cartifactId\u003esnap-capi\u003c/artifactId\u003e\n  \u003cversion\u003e1.2.1\u003c/version\u003e\n  \u003cscope\u003ecompile\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle users\n\nAdd this dependency to your project's build file:\n\n```groovy\n  repositories {\n    mavenCentral()\n  }\n\n  dependencies {\n     implementation \"com.snap.business.sdk.v3:snap-capi:1.2.1\"\n  }\n```\n\n### Others\n\nAt first generate the JAR by executing:\n\n```shell\nmvn clean package\n```\n\nThen manually install the following JARs:\n\n* `target/snap-capi-1.2.1.jar`\n* `target/lib/*.jar`\n\n## Getting Started\n\nPlease follow the [installation](#installation) instruction and execute the following Java code:\n\n### Usage Example\n\nFor more examples check the [examples](src/main/java/com/snap/business/sdk/v3/examples) folder.\n```java\n// Import classes:\nimport com.snap.business.sdk.v3.api.ConversionApiClient;\nimport com.snap.business.sdk.v3.model.CapiEvent;\nimport com.snap.business.sdk.v3.util.ServerEnv;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class Example {\n  public static void main(String[] args) {\n      ConversionApiClient capiClient = \n              new ConversionApiClient.Builder()\n                      .setAccessToken(\"\u003ccapi_access_token\u003e\") // Required\n                      .setServerEnv(SERVER_ENV.PROD) // Or SERVER_ENV.Staging Required\n                      .setOkHttpClient(okHttpClient) // Optional\n                      .withDebuggingEnabled() // Optional\n                      .withInternalDebuggingEnabled() // Optional\n                      .build();\n\n      CapiEvent capiEvent = new CapiEvent();\n      capiEvent.setEventName(\"purchase\");\n      capiEvent.setEventTime(1712009009L);\n      capiEvent.setActionSource(\"web\");\n      capiEvent.dataProcessingOptions(Collections.singletonList(\"LDU\"));\n\n      UserData userData = new UserData();\n      userData.setEm(\n              Collections.singletonList(\n                      \"7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068\"));\n      capiEvent.setUserData(userData);\n\n      CustomData customData = new CustomData();\n      customData.setCurrency(\"USD\");\n      customData.setValue(BigDecimal.valueOf(142.52));\n      capiEvent.setCustomData(customData);\n    \n      // Send Event Sync\n      EventResponse apiResponse = capiClient.sendEvent(testAssetId, capiPixelEvent);\n      // Send Batch Events Sync\n      EventResponse apiResponseBatch = capiClient.sendEventsBatch(testAssetId, capiBatchEvents);\n      \n      // Send Event Async\n      capiClient.sendEventAsync(testAssetId, capiPixelEvent);\n      \n      // Send Batch Events Async\n      capiClient.sendEventsBatchAsync(testAssetId, capiBatchEvents);\n  }\n}\n\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapchat%2Fbusiness-sdk-v3-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnapchat%2Fbusiness-sdk-v3-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapchat%2Fbusiness-sdk-v3-java/lists"}