OnlineService class

URL: https://developer.squareup.com/reference/square/sites-api

Get details about Square Online sites that belong to Square sellers.

Square sellers use Square Online to build eCommerce websites. The Sites API lets you get basic details about Square Online sites, such as the site ID, title, and domain. You can use the Sites API with the Snippets API to manage snippets that extend Square Online features.

Note: Square Online APIs are publicly available as part of an early access program. For more information, see Early access program for Square Online APIs.

Constructors

OnlineService({required String baseUrl, required AuthenticationService authenticationService})

Properties

authenticationService AuthenticationService
final
baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteSnippet({required String siteId, String? authToken}) Future<bool>
Removes your snippet from a Square Online site.
listSites({String? authToken}) Future<List<Site>>
Lists the Square Online sites that belong to a seller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readSnippet({required String siteId, String? authToken}) Future<Snippet>
Retrieves your snippet from a Square Online site.
toString() String
A string representation of this object.
inherited
upsertSnippet({required Snippet snippet, String? authToken}) Future<Snippet>
Adds a snippet to a Square Online site or updates the existing snippet on the site.

Operators

operator ==(Object other) bool
The equality operator.
inherited