Fishers Friend

Fishers Friend · GPT-Aktionen

Fishing Data API

API for managing fishing-related data

  • GET /locationsGet Fishing Locations
  • POST /reportsPost a Fishing Report
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Fishing Data API",
    "description": "API for managing fishing-related data",
    "version": "v1.0.0",
    "termsOfService": "https://api.fishingdata.com/terms",
    "contact": {
      "name": "API Support",
      "url": "https://api.fishingdata.com/support",
      "email": "support@api.fishingdata.com"
    },
    "license": {
      "name": "API License",
      "url": "https://api.fishingdata.com/license"
    },
    "x-privacy-policy": "https://api.fishingdata.com/privacy-policy"
  },
  "servers": [
    {
      "url": "https://api.fishingdata.com"
    }
  ],
  "paths": {
    "/locations": {
      "get": {
        "operationId": "getFishingLocations",
        "summary": "Get Fishing Locations",
        "responses": {
          "200": {
            "description": "A list of fishing locations",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FishingLocations"
                }
              }
            }
          }
        }
      }
    },
    "/reports": {
      "post": {
        "operationId": "postFishingReport",
        "summary": "Post a Fishing Report",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FishingReport"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Fishing report created"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FishingLocations": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "coordinates": {
              "type": "object",
              "properties": {
                "latitude": {
                  "type": "number",
                  "format": "float"
                },
                "longitude": {
                  "type": "number",
                  "format": "float"
                }
              }
            }
          }
        }
      },
      "FishingReport": {
        "type": "object",
        "properties": {
          "locationName": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "catchDetails": {
            "type": "string"
          }
        }
      }
    }
  }
}

Twitter Fishing Content Management

Schema for managing fishing-related tweets and threads.

  • POST /createTweetcreateFishingTweet

    Post a new fishing-related tweet

  • GET /analyzeMetricsanalyzeTweetMetrics

    Analyze retweets and mentions

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Twitter Fishing Content Management",
    "description": "Schema for managing fishing-related tweets and threads.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.twitter.com"
    }
  ],
  "paths": {
    "/createTweet": {
      "post": {
        "operationId": "createFishingTweet",
        "description": "Post a new fishing-related tweet",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Tweet"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tweet posted successfully"
          }
        }
      }
    },
    "/analyzeMetrics": {
      "get": {
        "operationId": "analyzeTweetMetrics",
        "description": "Analyze retweets and mentions",
        "responses": {
          "200": {
            "description": "Tweet analytics data retrieved successfully"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Tweet": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "hashtags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "text"
        ]
      }
    }
  }
}

Social Media API Integration

This API integrates with YouTube to fetch and post data, including user account linking through OAuth 2.0.

  • GET /youtube/{action}Perform action on YouTube
  • GET /oauth2/authorizeRedirect to YouTube OAuth 2.0 authorization
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Social Media API Integration",
    "description": "This API integrates with YouTube to fetch and post data, including user account linking through OAuth 2.0.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.youtube.com"
    }
  ],
  "paths": {
    "/youtube/{action}": {
      "get": {
        "summary": "Perform action on YouTube",
        "operationId": "youtubeAction",
        "parameters": [
          {
            "name": "action",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          }
        }
      }
    },
    "/oauth2/authorize": {
      "get": {
        "summary": "Redirect to YouTube OAuth 2.0 authorization",
        "operationId": "authorizeYouTube",
        "responses": {
          "302": {
            "description": "Redirect to authorization page"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "YouTubeResponse": {
        "type": "object",
        "properties": {
          "videoId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      }
    }
  },
  "securitySchemes": {
    "OAuth2": {
      "type": "oauth2",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
          "tokenUrl": "https://oauth2.googleapis.com/token",
          "scopes": {
            "https://www.googleapis.com/auth/youtube": "Access YouTube data"
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    }
  ]
}

Facebook Fishing Content Management

Schema for managing fishing-related content on Facebook.

  • POST /createPostcreateFishingPost

    Create a new fishing-related post

  • GET /analyzeInteractionsanalyzePostInteractions

    Analyze likes and comments on posts

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Facebook Fishing Content Management",
    "description": "Schema for managing fishing-related content on Facebook.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.facebook.com"
    }
  ],
  "paths": {
    "/createPost": {
      "post": {
        "operationId": "createFishingPost",
        "description": "Create a new fishing-related post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Post created successfully"
          }
        }
      }
    },
    "/analyzeInteractions": {
      "get": {
        "operationId": "analyzePostInteractions",
        "description": "Analyze likes and comments on posts",
        "responses": {
          "200": {
            "description": "Interaction data retrieved successfully"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Post": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "imageURL": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "text"
        ]
      }
    }
  }
}