Documentation
¶
Overview ¶
Package nutrifyi provides a Go client for the NutriFYI API (nutrifyi.com).
NutriFYI — zero dependencies, no authentication required.
Usage:
client := nutrifyi.NewClient()
result, err := client.Search("query")
Index ¶
- Constants
- type Client
- func (c *Client) Categories() (map[string]interface{}, error)
- func (c *Client) Category(slug string) (map[string]interface{}, error)
- func (c *Client) Comparison(slug string) (map[string]interface{}, error)
- func (c *Client) Comparisons() (map[string]interface{}, error)
- func (c *Client) Diet(slug string) (map[string]interface{}, error)
- func (c *Client) Diets() (map[string]interface{}, error)
- func (c *Client) Faq(slug string) (map[string]interface{}, error)
- func (c *Client) Faqs() (map[string]interface{}, error)
- func (c *Client) Food(slug string) (map[string]interface{}, error)
- func (c *Client) Foods() (map[string]interface{}, error)
- func (c *Client) Glossary() (map[string]interface{}, error)
- func (c *Client) Guide(slug string) (map[string]interface{}, error)
- func (c *Client) Guides() (map[string]interface{}, error)
- func (c *Client) Nutrition() (map[string]interface{}, error)
- func (c *Client) Search(query string) (map[string]interface{}, error)
- func (c *Client) Series() (map[string]interface{}, error)
- func (c *Client) Sery(slug string) (map[string]interface{}, error)
- func (c *Client) Term(slug string) (map[string]interface{}, error)
Constants ¶
View Source
const DefaultBaseURL = "https://nutrifyi.com"
DefaultBaseURL is the default API base URL.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a NutriFYI API client.
func (*Client) Categories ¶
Categories returns a list of categories.
func (*Client) Comparison ¶
Comparison returns details for a comparison by slug.
func (*Client) Comparisons ¶
Comparisons returns a list of comparisons.
Click to show internal directories.
Click to hide internal directories.