This is a FastAPI-based application that uses Google’s Gmail API to fetch and display emails based on user-defined search queries. It provides a /search_emails endpoint for email searches and a /oauth2callback endpoint for OAuth2 callbacks. The app requires the environment variables CLIENT_ID, CLIENT_SECRET, and REDIRECT_URI for OAuth2 authentication. These credentials pertain to your Google API and must be set correctly for the application to function as expected.
An app that moderates comments on your page feed using Facebook API and webhooks. This app uses the FastAPI to create a webhook endpoint for moderating posts on your page. A facebook access token for the page will be needed to make the API call. The permission scopes you will need for the access token are `pages_read_engagement` and `pages_manage_posts permissions` as an admin of the page you are posting to. The app moderates comments on Facebook ads/posts by removing and flagging hateful speech.
An app that shares a post to your page feed using Facebook API. This app uses the FastAPI to create an endpoint to call the Facebook API for sharing a post on your page. A facebook access token for the page will be needed to make the API call. The permission scopes you will need for the access token are `pages_read_engagement` and `pages_manage_posts permissions` as an admin of the page you are posting to. A link to another facebook can also be provided to share that post with a caption on your page.
This is a FastAPI application that interacts with the Google Calendar API to create events. It requires three environment secrets: CLIENT_ID, CLIENT_SECRET, and REDIRECT_URI. The application has three main endpoints: POST /create_event: This endpoint accepts a dictionary representing an event and attempts to create this event on the primary calendar of the authenticated user. GET /oauth2callback: This endpoint handles the OAuth2 callback from Google. If no code is provided, it redirects the user to the Google authorization page. If a code is provided, it exchanges the code for an access token and stores the token. GET /clear_credentials: This endpoint clears the stored credentials. Please note that the application must be authenticated with Google before events can be created. This is done by accessing the /oauth2callback endpoint and following the Google authorization process.
An app that fetches Facebook leads forms for a page using the Facebook Developers API. This app uses the FastAPI to create an endpoint to call the Facebook API for getting the page lead forms. A facebook access token for the page will be needed to make the API call. The permission scopes you will need for the access token are `ads_management`, `pages_read_engagement`, `pages_show_list`, `pages_manage_ads` and ` leads_retrieval`.
A FastAPI-based application that retrieves the latest video details from your favorite channels using the YouTube API. Simply provide a channel ID or URL to get comprehensive results, including video ID, title, and description. The app requires a YouTube API key, which can be set as an environment variable.
An app for fetching a logged-in pages's review using the Facebook API. This app uses the FastAPI to create an endpoint to call the Facebook API for getting the page reviews. A facebook access token for the page will be needed to make the API call. The permission scope you will need for the access token is `pages_read_user_content`.
This application provides Fast API endpoints to get videos all videos from a YouTube channel using Youtube API. The end points are "channel/videos" to get videos using channel id and "channel/videos/by-url" to get videos using YouTube channel url. The videos’ details such as ID, title, description, link, and published date are returned in a structured format. The application requires the ‘YOUTUBE_API_KEY’ to be set in the environment variables to authenticate the requests to the YouTube Data API.
An app that retrieves the Facebook user ID using the Facebook API. No specific permissions are required to make this api call. This app uses the FastAPI to create an endpoint to call the Facebook API for getting a logged-in user's id. A facebook access token will be needed to make the API call.
An app for fetching a logged-in user's pages using the Facebook API. The permission scope you will need is `pages_manage_metadata`. This app uses the FastAPI to create an endpoint to call the Facebook API for getting a user's pages that they are an admin of. A facebook access token will be needed to make the API call.
An app for fetching a post's comments using the Facebook API. The permission scopes you will need are `pages_read_engagement`, `pages_manage_metadata` and `pages_read_user_content`. This app uses the FastAPI to create an endpoint to call the Facebook API for getting a post's comments according to the post id and access token we provide the app. Using this app, we can retrieve and analyze comments on Facebook posts using the Facebook API.
An app for fetching a Facebook user's posts using the Facebook API. This app uses the FastAPI to create an endpoint to call the Facebook API for getting user posts according to the user id and access token we provide the app. You can customize this app to get Facebook group posts as well.
This is a FastAPI application that calculates the distance between two geographical points using the Google Maps API. Users input latitude and longitude of both points, and the app returns the distance. It requires a Google Maps API key stored in an environment variable ‘GOOGLE_MAPS_API_KEY’.
This application is a web server built with FastAPI. It provides an endpoint /get_location that fetches location data based on latitude and longitude using the Google Maps API. When a POST request is made to the /get_location endpoint with latitude and longitude as form data, the application returns the location data in JSON format. The application requires a Google Maps API key to function. This key should be provided via the environment variable GOOGLE_MAPS_API_KEY
This application is a FastAPI web server that provides an endpoint to fetch the geographical coordinates (latitude and longitude) of a given address. The endpoint /get_address_coordinates accepts an address as input and uses the Google Maps Geocoding API to fetch the corresponding coordinates. The application requires a Google Maps API key to function. This key should be provided via the environment variable GOOGLE_MAPS_API_KEY
A FastAPI application to find YouTube channel ID. By simply providing a video URL, users can retrieve information about the video's channel, including the channel ID and channel name. The app leverages the YouTube API to fetch this data, requiring users to set a YOUTUBE_API_KEY in the environment variables for it to function correctly.
This app creates a GitHub repository using a template repository with user-defined environment variables. The user can add the template repository name and repository owner details as environment variables. They can also add the custom name they would like to give the new repository created from the template. The app uses FastAPI for making the api call to Github endpoints.
A python app for getting orders in a store using the Shopify API. The python FastAPI is used for making the API call. The app requires a SHOPIFY_ADMIN_API_TOKEN and "orders" scope permissions to authenticate requests. This app can be customized to get all orders by name, by order ID (order number), fulfilled orders only and so on.
A FastAPI application that retrieves all products from a Shopify store and returns them in JSON format. Requires the SHOPIFY_ADMIN_API_TOKEN environment secret. The app includes an endpoint at "/product_metafields" where users can provide a product ID and the Shopify store URL to retrieve the product's metafields. The only environment secret required is SHOPIFY_ADMIN_API_TOKEN, which must be set for the app to authenticate with the Shopify API.
The app includes two main functionalities: 1. A POST endpoint `/bulk_update_inventory` that allows bulk updating of inventory levels for products in a Shopify store. It requires a JSON payload with the store URL, location ID, and a list of inventory updates. 2. A GET endpoint `/fetch_inventory_levels` that retrieves the inventory levels for a specific location in a Shopify store. It requires the store URL and location ID as query parameters. For the app to function correctly, please ensure the following environment variable is set in the Env Secrets tab: - `SHOPIFY_ADMIN_API_TOKEN`: This is the Shopify admin API token used for authenticating requests to the Shopify GraphQL API.
This app allows users to update inventory quantity of a product and to get inventory_level_id of a product in a Shopify store using API. Users can set the necessary environment variables, including the SHOPIFY_ADMIN_API_TOKEN to enable the app to access the store. The app has following end points: - An endpoint to adjust the inventory level of a product (`/update_inventory`). - An endpoint to get the inventory level ID of a product (`/get_inventory_level_id`).
The Shopify Get All Products Downloader is a FastAPI application that connects to a Shopify store using the provided store URL and Shopify API credentials. It retrieves all products from the Shopify store and returns them in JSON format. The app also includes frontend JavaScript code that calls the backend API and downloads the products (all or from a specific collection) which can be used for your storefront. You need to provide SHOPIFY_API_KEY and SHOPIFY_ADMIN_API_TOKEN.
This app integrates a custom Stripe subscription API. It includes a backend service set up using FastAPI and is compatible with any price point established through the Stripe API. The backend service creates a Stripe subscription and allows all CORS. It also logs sent requests and subscription statuses. The price ID, customer ID, and payment method are fetched during the request from the user. After adding the Stripe API key, the backend service can be activated by clicking the test button. The required environment secrets for this app are STRIPE_SECRET_KEY.
This app integrates a custom Stripe subscription API. It includes a backend service set up using FastAPI and is compatible with any price point established through the Stripe API. The backend service creates a Stripe subscription and allows all CORS. It also logs sent requests and subscription statuses. The price ID, customer ID, and payment method are fetched during the request from the user. After adding the Stripe API key, the backend service can be activated by clicking the test button. The required environment secrets for this app are STRIPE_SECRET_KEY.
This app integrates a custom Stripe checkout page in a Python application. It includes both a backend and a frontend. The backend service is set up using FastAPI and is compatible with any price point established through the Stripe API. The backend service creates a Stripe checkout session and retrieves the status of a checkout session. It also allows all CORS and logs sent requests and checkout session statuses. The price ID is fetched during the request from the user. After adding the Stripe API key and directing the backend service to the price ID, the backend service can be activated by clicking the test button. The frontend code can be integrated into a Python application to create a custom payment page. This method can be used to set up various types of payment pages, including one-time payments and subscriptions. The required environment secrets for this app are STRIPE_SECRET_KEY and YOUR_DOMAIN.
This template integrates a custom Stripe payment gateway in WordPress. It includes both a backend and a frontend. The backend service is set up using FastAPI and is compatible with any price point established through the Stripe API. The backend service creates a Stripe checkout session and retrieves the status of a checkout session. It also allows all CORS and logs sent requests and checkout session statuses. The price ID is fetched during the request from the user. After adding the Stripe API key and directing the backend service to the price ID, the backend service can be activated by clicking the test button. The frontend code can be integrated into a WordPress page to create a custom payment gateway page with a payment button in WordPress. This method can be used to set up various types of payment pages in WordPress, including one-time payments and subscriptions. The required environment secrets for this app are STRIPE_SECRET_KEY and YOUR_DOMAIN.
This app integrates a custom Stripe payment page in WordPress. It includes both a backend and a frontend. The backend service is set up using FastAPI and is compatible with any price point established through the Stripe API. The backend service creates a Stripe checkout session and retrieves the status of a checkout session. It also allows all CORS and logs sent requests and checkout session statuses. The price ID is fetched during the request from the user. After adding the Stripe API key and directing the backend service to the price ID, the backend service can be activated by clicking the test button. The frontend code can be integrated into a WordPress page to create a custom payment page in WordPress. This method can be used to set up various types of payment pages in WordPress, including one-time payments and subscriptions. The required environment secrets for this app are STRIPE_SECRET_KEY and YOUR_DOMAIN.
This app is a fast API endpoint that will automatically post a tweet provided via the API to a company's Twitter account. Can be used in your product to promote certain things happening, for example a product community member does something and you tweet automatically about it. Ideal for automatic tweets posting for company updates. Steps: 1. Sign up for a developer account on https://developer.twitter.com/ (you have to log in with the company's Twitter handle) 2. There's a free option (even though they are pushing the $100 per month basic option you don't need that to get started and for small volumes) 3. Navigate to projects and apps 4. From the consumer keys section copy the API key and Secret into Env Secrets tab in Lazy (make sure variable names are correct) 5. Generate an Access Token and Secret and copy them into Env Secrets tab in Lazy (make sure variable names are correct) THESE MUST HAVE READ AND WRITE ACCESS OTHERWISE IT WON'T WORK 6. Generate a bearer token and add to env secrets 7. Use the Fast API docs page to test app and try to post using the API endpoint or make a sample request directly. 8. Check your Twitter for the post appearing and voila!
This app template will create and retrieve a payment intent on Stripe using API. It requires the Stripe API key to be set as an environment variable named 'STRIPE_API_KEY'. The template provides a POST endpoint at '/create_payment_intent' to create a payment intent and a GET endpoint at '/retrieve_payment_intent/{payment_intent_id}' to retrieve a payment intent.
This application serves as an API server that incorporates functionalities. It includes an endpoint that allows you to create a Stripe checkout session, for payment processing. Additionally it provides another endpoint to retrieve the status of a checkout session. The application allows for origin resource sharing (CORS) and generates logs with information level details regarding sent requests.
This API will classify incoming text items into categories using the GPT 4 model. If the model is unsure about the category of a text item, it will respond with an empty string. The categories are parameters that the API endpoint accepts. The GPT 4 model will classify the items on its own with a prompt like this: "Classify the following item {item} into one of these categories {categories}". There is no maximum number of categories a text item can belong to in the multiple categories classification. The API will use the llm_prompt ability to ask the LLM to classify the item and respond with the category. The API will take the LLM's response as is and will not handle situations where the model identifies multiple categories for a text item in the single category classification. If the model is unsure about the category of a text item in the multiple categories classification, it will respond with an empty string for that item. The API will use Python's concurrent.futures module to parallelize the classification of text items. The API will handle timeouts and exceptions by leaving the items unclassified. The API will parse the LLM's response for the multiple categories classification and match it to the list of categories provided in the API parameters. The API will convert the LLM's response and the categories to lowercase before matching them. The API will split the LLM's response on both ':' and ',' to remove the "Category" word from the response. The temperature of the GPT model is set to a minimal value to make the output more deterministic. The API will return all matching categories for a text item in the multiple categories classification. The API will strip any leading or trailing whitespace from the categories in the LLM's response before matching them to the list of categories provided in the API parameters. The API will accept lists as answers from the LLM. If the LLM responds with a string that's formatted like a list, the API will parse it and match it to the list of categories provided in the API parameters.
This app allows users to update inventory quantity of a product and to get inventory_level_id of a product in a Shopify store using API. Users can set the necessary environment variables, including the SHOPIFY_ADMIN_API_TOKEN to enable the app to access the store. The app has following end points: - An endpoint to adjust the inventory level of a product (`/update_inventory`). - An endpoint to get the inventory level ID of a product (`/get_inventory_level_id`).
This is a FastAPI application that interacts with the Google Calendar API to create events. It requires three environment secrets: CLIENT_ID, CLIENT_SECRET, and REDIRECT_URI. The application has three main endpoints: POST /create_event: This endpoint accepts a dictionary representing an event and attempts to create this event on the primary calendar of the authenticated user. GET /oauth2callback: This endpoint handles the OAuth2 callback from Google. If no code is provided, it redirects the user to the Google authorization page. If a code is provided, it exchanges the code for an access token and stores the token. GET /clear_credentials: This endpoint clears the stored credentials. Please note that the application must be authenticated with Google before events can be created. This is done by accessing the /oauth2callback endpoint and following the Google authorization process.
This app utilizes Flask for the backend and JavaScript with Octokit for the frontend. It allows users to browse GitHub repositories tagged with 'template-repository', displaying them with options to create new repositories from selected templates. The Flask backend serves the HTML template, passing along a GitHub token securely. The frontend fetches repositories from GitHub, displaying them dynamically and enabling users to create new repositories based on selected templates, all while maintaining a modern and responsive user interface. Made by BaranDev[https://github.com/BaranDev]
The Discord bot monitors all messages in the server. If a message contains profanity, the bot deletes it and sends a warning to the channel. The bot also notifies the host about the deletion via a direct message. Additionally, the bot outputs a helpful error message to a channel if there is a permissions error, guiding the server admin to enable the required permission in the Discord Developer portal.
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.7+ based on standard Python type hints. It is designed to be easy to use, efficient, and scalable. FastAPI is built on top of Starlette, which is a lightweight asynchronous web framework.
Some key features of FastAPI include:
Overall, FastAPI is a powerful and efficient web framework for building APIs with Python. It combines the ease of use of Python type hints with the performance of asynchronous programming, making it a great choice for building high-performance APIs.