Square SDK and Mobile Samples

Explore samples for OAuth, Square SDK, GraphQL, and mobile.

Link to section

OAuth samples

These sample applications demonstrate a bare-bones implementation of the OAuth flow for Square APIs. Each language-specific application serves a link that directs merchants to the OAuth Permissions form and handles the result of the authorization, which is sent to your application's Redirect URL. For more information and a detailed walkthrough, see OAuth Walkthrough.

Java    Node.js     PHP     Python     Ruby    

Link to section

Square SDK samples

Link to section

GraphQL samples

Sample applications demonstrating how to use Square GraphQL queries to access data from Square APIs. Each application includes a script you can run to upload test data to your Square account.