eray-aydin / facebook-business-sdk-codegen

Codegen project for our business SDKs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook Business SDK Codegen

Introduction

This project contains all the code to auto generate Facebook Business SDKs (php, python, nodejs, ruby, java). There are three parts of this project :

  • JSON schema representation of the Graph API endpoints.
  • Mustache template for 5 languages.
  • Codegen scripts.

Pre-requisites

Install Node.js

Install all dependencies by npm : npm install

Codegen SDK

npm run build && node lib/CodeGenerator.js <language>

Debug

During debug, if you want to compare with the generated SDK to our current SDK code, you can specific the output folder by using -o :

npm run build && node lib/CodeGenerator.js <language> -o outputDir

If you want to keep git config in outputDir, you can specific only cleanup source code by using -c , for example:

npm run build && node lib/CodeGenerator.js php -o ../facebook-php-business-sdk/ -c src/

License

Facebook Codegen for Business SDKs is licensed under the LICENSE file in the root directory of this source tree.

About

Codegen project for our business SDKs

License:MIT License


Languages

Language:PHP 35.3%Language:Python 16.4%Language:Java 13.5%Language:JavaScript 13.0%Language:Ruby 10.8%Language:HTML 10.6%Language:Kotlin 0.3%Language:CSS 0.2%