meta

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package meta provides the core client and utilities for interacting with the Meta Graph API.

Index

Constants

View Source
const (
	// GraphAPIVersion defines the default API version used by [GraphAPIClient].
	GraphAPIVersion = "v24.0"

	// GraphAPIBaseUrl defines the base URL for the Graph API used by [GraphAPIClient].
	GraphAPIBaseUrl = "https://graph.facebook.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphAPIClient

type GraphAPIClient struct {
	HttpClient
	ApiVersion  string
	BaseUrl     string
	AccessToken string
}

GraphAPIClient represents the main client structure for Meta Graph API requests. It embeds HttpClient to handle HTTP communications.

func (GraphAPIClient) Buffer

func (c GraphAPIClient) Buffer(buf []byte) *bytes.Buffer

Buffer creates and returns a new bytes.Buffer from the provided byte slice.

func (GraphAPIClient) Reader

func (c GraphAPIClient) Reader(buf []byte) io.Reader

Reader returns an io.Reader wrapping the provided byte slice.

func (GraphAPIClient) Writer

func (c GraphAPIClient) Writer(buf []byte) io.Writer

Writer returns an io.Writer wrapping the provided byte slice.

type HttpClient

type HttpClient = xhttp.HTTPClient

HttpClient is an alias for the external xhttp.HTTPClient.

Directories

Path Synopsis
Package whatsapp provides a client and utilities for interacting with the WhatsApp Business API.
Package whatsapp provides a client and utilities for interacting with the WhatsApp Business API.
group
Package group provides abstractions and functions to manage WhatsApp groups through the Meta API.
Package group provides abstractions and functions to manage WhatsApp groups through the Meta API.
xjson
Package xjson provides utility functions and types for handling JSON data.
Package xjson provides utility functions and types for handling JSON data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL