Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/facebookincubator/facebook-server-side-api-swagger

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/facebookincubator/facebook-server-side-api-swagger

  • v0.0.0-20210405175644-76c179897464
  • Source
  • Go
  • Socket score

Version published
Created
Source

Facebook Server-side API (for Web)

The server-side API (for web) allows advertisers to send web events from their servers directly to Facebook. Server-side events are linked to a pixel and are processed like browser pixel events. This means that server-side events are used in measurement, reporting, and optimization in the same way as browser pixel events. Learn More

Create the Server-side API (for Web) client SDK using Swagger codegen and quickly onboard to send the actions people take on your website when they interact with your page, such as Lead, ViewContent, AddToCart, InitiateCheckout and Purchase events.

Requirements

  • Java, version 7 or higher
  • Swagger Codegen Learn More

Get started

Clone this repo with the following command:

$ git clone https://github.com/facebookincubator/Facebook-Server-Side-API-Swagger.git

  • Generating Code using swagger-codegen

swagger-codegen generate -i server-side-api.yaml -l

Example:

swagger-codegen generate -i server-side-api.yaml -l csharp

  • Else, you could use latest swagger codegen jar:

java -jar swagger-codegen-cli-2.2.1.jar generate -i server-side-api.yaml -l

Example:

java -jar swagger-codegen-cli-2.2.1.jar generate -i server-side-api.yaml -l csharp

In the above code, we pass two arguments : - i and -l. -i is used to specify the path of Server-side API’s specification. -l is used to specify the language you want to generate the code for Server-side API’s specification

The Codegen creates a README file with all the information for running and building the API. Each language creates a different README, so please go through it to learn about how to build your Swagger defined API.

Contributing

See the CONTRIBUTING file for how to help out

License

Official Facebook Pixel is GPLv2-licensed

FAQs

Package last updated on 05 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc