Entradas

Mostrando entradas de diciembre, 2022

Unnofficial Python wrapper for the unite-db.com REST API.

Introduction unite-db is a website dedicated to maintaining a database on various stats in the game Pokemon Unite including stats for Pokemon, Battle Items and Held Items. This wrapper provides a simple, Pythonic interface to those stats via a REST API, with automatic result caching. Please be warned that this is an unofficial wrapper and the REST API is a private one, so please do not abuse it. If you are publishing any of the data collected with this API, please give credit to unite-db . They spend many hours collecting this data. Installation The package is installable via pip . pip install py-unite-db Usage Import the UniteDb object: from py_unite_db import UniteDb unite_db = UniteDb () Let's get the names of all supporter Pokemon: >>> [ pokemon . name for pokemon in unite_db . pokemon if pokemon . role == "Supporter" ] [ 'Blissey' , 'Eldegoss' , 'Mr.Mime' , 'Wigglytuff' ] Contributing This project uses pdm . $

openweathermap api GitHub Topics GitHub

Turn any electrical irrigation valve into a smart-valve.. or run your pumps on a smart schedule based on your climate!  This homebridge plugin exposes a multi-zone irrigation sprinkler dummy control system to Apple's HomeKit.  Although a dummy, it brings smarts of an evapotranspiration based climate and plant adaptive irrigation controller with the use of OpenWeatherMap API.  The plugin can optionally email you, and/or send you push notifications through Pushover or Pushcut, with the watering schedule it has calculated, or when a watering run is completed, along with the next 7-day weather forecast. Added option to expose system controls to Homekit allowing a user to enable/disable irrigation, rechecks, push and email notifications from within the Home App. Associated WaterLevel Characteristic shows the % of watering cycle remaining.

Openweather Apis

Simple APIs to use with OpenWeatherMap.org free servicies, request a APPID on http://openweathermap.org/appid and start! : New Version of the package (Node.js > 16) can be found at the new package domain @cicciosgamino/openweather-apis Intro Simple abstraction layer for use the services offered by the OpenWeatherMap.org website through its API's. You can easy reach the weather informations you need on over 400k weather stations. For get the APPID follow the OpenWeather.org link and complete the request process. Version details Main changes by version (if the first number change, old code you have written is not supported, for example between version 1.x.x to version 2.x.x (I apologize for that), all minor/major/fix in: CHANGELOG.md Installation Like all node packages, install and mange operation are done by npm (use the -s if you want save the package in the package.json file) : npm install openweather - apis // install and save in package.json npm install openweathe

OpenSea NFT API Python 3 wrapper

This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to fetch a diverse set of NFT data points from OpenSea. Supported endpoints The wrapper covers the following OpenSea API endpoints: Single asset (/asset) Single asset contract (/asset_contract) Single collection (/collection) Collection stats (/collection/{slug}/stats) Multiple assets] (/assets) Multiple collections (/collections) Multiple events (/events) Multiple bundles (/bundles) Prerequisite You need to have an API key to use the OpenSea API, and thus you need one to use this wrapper too. You can request a key here. NOTE: The API key can take over 4-7 days to be delivered. It also requires you to show the project you are working on. Installation Install with pip: virtualenv env && source env/bin/activate pip install opensea-api Upgrade pip install opensea-api -U Usage examples # import the OpenseaAPI object from the opensea module from op

The Open Movie Database API omdb

Python wrapper around The Open Movie Database API (a.k.a. OMDb API): http://omdbapi.com/ NOTE: This library and its author are not endorsed by or affiliated with OMDbAPI.com. Usage General Import import omdb omdb.get() # include full plot and Rotten Tomatoes data omdb . get ( title = 'True Grit' , year = 1969 , fullplot = True , tomatoes = True ) omdb.search() # search by string omdb . search ( 'True Grit' ) omdb.imdbid() # get by IMDB id omdb . imdbid ( 'tt0065126' ) omdb.title() # get by title omdb . title ( 'True Grit' ) omdb.set_default() # include tomatoes data by default omdb . set_default ( 'tomatoes' , True ) omdb . title ( 'True Grit' ) == omdb . title ( 'True Grit' , tomatoes = True )

Basic abstraction with Laravel integration for Mailchimp API v3

// Get an array of all available lists: Mailchimp :: getLists (); // Get lists with parameters - get IDs of lists a user is subscribed to: Mailchimp :: getLists ([ 'email' => ' user@example.com ' , 'fields' => ' lists.id ' ]); // Check to see if an email address is subscribed to a list: Mailchimp :: check ( $ listId , $ emailAddress ); // Returns boolean // Check the staus of a subscriber: Mailchimp :: status ( $ listId , $ emailAddress ); // Returns 'subscribed', 'unsubscribed', 'cleaned', 'pending', 'transactional' or 'not found' // Adds/updates an existing subscriber: Mailchimp :: subscribe ( $ listId , $ emailAddress , $ merge = [], $ confirm = true ); // Use $confirm = false to skip double-opt-in if you already have permission. // This method will update an existing subscriber and will not ask an existing subscriber to re-confirm. // Unsubscribe a member (set status to 'unsubscribed'): Ma

Zendesk API client library for Go

Zendesk API client library for Go package main import ( "context" " github.com/nukosuke/go-zendesk/zendesk " ) func main () { // You can set custom *http.Client here client , _ := zendesk . NewClient ( nil ) // example.zendesk.com client . SetSubdomain ( "example" ) // Authenticate with API token client . SetCredential ( zendesk . NewAPITokenCredential ( " john.doe@example.com " , "apitoken" )) // Authenticate with agent password client . SetCredential ( zendesk . NewBasicAuthCredential ( " john.doe@example.com " , "password" )) // Create resource client . CreateGroup ( context . Background (), zendesk. Group { Name : "support team" , }) }

notion-client api

notion-sdk-py is a simple and easy to use client library for the official Notion API. It is meant to be a Python version of the reference JavaScript SDK, so usage should be pretty similar between both. Announcement (18-04-2022) Notion API is officially out of beta, and we are too: 1.0.0 is now released! Beware, Notion-Version has been upgraded to 2022-02-22 and it brings breaking changes. Installation pip install notion-client Usage Import and initialize a client using an integration token or an OAuth access token. import os from notion_client import Client notion = Client ( auth = os . environ [ "NOTION_TOKEN" ]) In an asyncio environment, use the asynchronous client instead: from notion_client import AsyncClient notion = AsyncClient ( auth = os . environ [ "NOTION_TOKEN" ]) Make a request to any Notion API endpoint. See the complete list of endpoints in the API reference. from pprint import pprint list_users_response = notion

Ruby interface to the OMDB API

Ruby interface to the Open Movie Database API #find_by_id #find_by_title #search require 'omdb/api' client = Omdb::Api::Client.new(api_key: [your API key])` or configure with a block client = Omdb::Api::Client.new do |config| config.api_key = api_key end client.find_by_title('star wars') => #<Omdb::Api::Movie:0x007f9a7d453cf0 @actors="Harrison Ford"... client.find_by_id('tt0083929') => #<Omdb::Api::Movie:0x007f960a648f28 @actors="Sean Penn, Jennifer Jason Leigh, Judge Reinhold, Robert Romanus", client.search('indiana jones') => [#<Omdb::Api::Movie:0x007ffec28ad1a8 @title="Indiana... ruby >= 2.5.0 gem install omdb - api (The MIT License) Copyright 2022 Nicholas Palaniuk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limi

Unofficial Java client for the Sonos API

Sonos API client for Java This library provides a simple integration with the Sonos API, allowing you to control players and content from any Java app. Please note that this library is currently still in development. Some aspects (particularly with the SMAPI) cannot be tested due to a lack of access, others due to not owning devices with specific features. Prerequisites Before using the library, it's recommended that you read the official documentation published on the Sonos Developer site. The reference documentation is also detailed and provides a good overview of the many different resources and endpoints open to you. You'll need to register with Sonos, create a Control Integration, and finally generate client credentials to be able to connect with the Sonos API. It's also recommended that you have at least one Sonos device to be able to properly test and play with your application (plus, listening to music or watching movies with Sonos is awesome anyway!) Maven Se

An API wrapper written in PHP for the Rick and Morty API.

The Rick and Morty API PHP Client An API wrapper written in PHP for the Rick and Morty API at https://rickandmortyapi.com . Get all the information about characters, episodes and locations of Rick and Morty with this PHP client without messing around with Curl calls and JSON responses. This library does not return the same JSON provided by the API, but wraps everything in convenient PHP class objects. The Rick and Morty API is made by Axel Fuhrmann. Requirements PHP >= 8.0 JSON extension (enabled by default since PHP 8.0) Installation Install the library into your project with Composer. composer require nickbeen/rick-and-morty-php-api Usage Initiate a Character , Episode or Location model and use the available tools to list, retrieve or search within that model. The library returns a NotFoundException when using invalid arguments, retrieving nonexistent models or if the Rick and Morty API is not available. Implement a try block to handle the exception in your application i

The code repository for earth-imagery-api on https:api.nasa.gov

Description This repository contains a flask API that provides satellite imagery. It is designed to be very simple and easy to use with minimal functionality and is provided to the public through api.nasa.gov . It focuses on one Earth imagery product, Landsat 8. Purpose While there are many ways NASA and other government agencies provide satellite imagery to the public, these are often more fully featured and as a result more complex to use. This API is built to have a very basic intuitive interface and to be found easily on api.nasa.gov . It is designed for those just getting started with satellite imagery and APIs. It can server as a first step to using more complex imagery services. History & Why Open Sourced The earth imagery API has existed as an option on api.nasa.gov for several years. Many people have built demos using it or integrated it into their applications. We don't recommend using it in production. It is shared mostly as a very easy and feature sparse start

minecraft-api GitHub Topics GitHub

CraftLib wraps the entire Minecraft codebase as a Java / Kotlin library. Supports protocol, NBT, chat and schematics. 1.7.x - 1.8.x

An OpenAPI demo specification to integrate Qualtrics XM into Microsoft Power Platform

This repository contains sample code to demonstrate integration of Qualtrics survey data and survey events into Microsoft Power Platform. The OpenAPI 2.0 compliant SWAGGER file can be used as the base to create a Microsoft Power Platform custom connector. The OpenAPI 3.0 compliant file is there for reference use into Azure API Management (at this point of time Power Platform does not allow OA 3.0 compliant files) The sample code implements the following actions on the Qualtrics API located at https://api.qualtrics.com/ To gain access to the API a Qualtrics account is required. This sample is provided as-is as a reference and not intended to be used for production purposes Usage Navigate to https://make.powerapps.com . Expand Data > Custom Connectors > New Custom Connector > From OpenAPI file > Select the SWAGGER 2.0 compliant file Setup icon and other options Triggers When a survey response is submitted (see caution note below) Triggers when a respo

The Java API Client for the Merge HRIS API.

Merge HRIS API The unified API for building rich integrations with multiple HR Information System platforms. For more information, please visit https://www.merge.dev/ Automatically generated by the OpenAPI Generator Building the API client library requires: To install the API client library to your local Maven repository, simply execute: To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: Refer to the OSSRH Guide for more information. Add this dependency to your project's POM: Add this dependency to your project's build file: At first generate the JAR by executing: Then manually install the following JARs: Please follow the installation instruction and execute the following Java code:

mercadolibre-api GitHub Topics GitHub

Aplicacion movil que hace uso de la API de mercado libre, se utilizan recursos que requieren autenticacion y recursos que no requieren autenticacion. La aplicacion esta desarrollada en Android bajo el lenguaje Java

PlaceholderAPI java code examples

private void updatePrefix(FScoreboard fboard) { if (SavageFactions.plugin.getConfig().getBoolean( "scoreboard.default-prefixes" , false )) { FPlayer fplayer = fboard.getFPlayer(); Team team = teams.get(fboard); boolean focused = false ; if ((SavageFactions.plugin.getConfig().getBoolean( "ffocus.Enabled" )) && (fplayer.getFaction() != null) && (fplayer.getFaction().getFocused() != null)) { for (FPlayer fp : this .faction.getFPlayersWhereOnline( true )) { if (fplayer.getFaction().getFocused().equalsIgnoreCase(fp.getName())) { team.setPrefix(ChatColor.translateAlternateColorCodes( '&' , SavageFactions.plugin.getConfig().getString( "ffocus.Prefix" , "&7&b" ))); focused = true ; } } } if (!focused) { String prefix = TL.DEFAULT_PREFIX.toString(); prefix = PlaceholderAPI. setPlaceholders (fplayer.getPlayer(), prefix); prefix = PlaceholderAPI. setBracketPlaceholders (fpla

Powerful Unsplash package for Laravel

Powerful Unsplash package for Laravel Provides a fluent api to use the Unsplash within Larvel applications. Use public actions or store images directly in your storage and persists all copyright informations automatically with the databse connector. Install $ composer require marksitko/laravel-unsplash Laravel-Unsplash comes with package discovery and Laravel will register the service provider and facade automatically. Just in case you wanna add it manually, you should provide it in config/app.php Service provider 'providers' => [ //... MarkSitko \ LaravelUnsplash \ UnsplashServiceProvider ::class, ]; Facade 'aliases' => [ //... 'Unsplash' => MarkSitko \ LaravelUnsplash \ Facades \ Unsplash ::class, ]; Next you should publish the configuration. $ php artisan vendor:publish --tag=config Optional If you wanna use Laravel-Unsplash with the database connector you have to publish the migration files. $ php artisan vendo

mapbox api

mapbox-sdk-py A Python client for Mapbox web services. The Mapbox Python SDK is a low-level client API, not a Resource API such as the ones in . Its methods return objects containing HTTP responses from the Mapbox API. Services Analytics V1 examples, website API usage for services by resource. available for premium and enterprise plans. Directions V5 examples, website Profiles for driving, walking, and cycling GeoJSON & Polyline formatting Distance V1 DEPRECATED Geocoding V5 examples, website Forward (place names longitude, latitude) Reverse (longitude, latitude place names) Map Matching V4 examples, website Snap GPS traces to OpenStreetMap data Static Maps V4 examples, website Generate standalone images from existing Mapbox mapids (tilesets) Render with GeoJSON overlays Static Styles V1 examples, website Generate standalone images from existing Mapbox styles Render with GeoJSON overlays Adjust pitch and bearing, decimal zoom levels Surface V4 exampl

Official Notion JavaScript Client

Notion SDK for JavaScript A simple and easy to use client for the Notion API Installation npm install @notionhq/client Usage Use Notion's Getting Started Guide to get set up to use Notion's API. Import and initialize a client using an integration token or an OAuth access token. const { Client } = require ( "@notionhq/client" ) // Initializing a client const notion = new Client ( { auth : process . env . NOTION_TOKEN , } ) Make a request to any Notion API endpoint. See the complete list of endpoints in the API reference. ; ( async ( ) => { const listUsersResponse = await notion . users . list ( { } ) } ) ( ) Each method returns a Promise which resolves the response. console . log ( listUsersResponse ) { results: [ { object: 'user', id: 'd40e767c-d7af-4b18-a86d-55c61f1e39a4', type: 'person', person: { email: ' avo@example.org ', }, name: 'Avocado Lovelace', avatar_url: ' https://secure.notion-static.com/e6a352

linkedin-api

linkedin_api Python Wrapper for the Linkedin API No "official" API access required - just use a valid Linkedin account! Programmatically send messages, perform searches, get profile data and more, all with a regular Linkedin user account! USE AT YOUR OWN RISK This project should only be used as a learning project. Using it would violate Linkedin's User Agreement. I am not responsible for your account being blocked (which they will definitely do - see User Agreement section 8.2). Hint: don't use a Linkedin account that you care about) Overview This project attempts to provide a simple Python interface for the Linkedin API. Do you mean the legit Linkedin API? NO! To retrieve structured data, the Linkedin Website uses a service they call Voyager. Voyager endpoints give us access to pretty much everything we could want from Linkedin: profiles, companies, connections, messages, etc. - anything that you can see on linkedin.com , we can get from

"API Proxy" que permite consultar CVOED de IMSS y obtener un bonito JSON.

"API Proxy" que permite consultar CVOED de IMSS y obtener un bonito JSON. el modulo en gob.mx ha sido deshabilitado, por lo que este API ya no funciona y probablemente no funcionara. Lo conservo puramente por nostalgia.

Write your API docs in Markdown and get them converted into pretty HTML

This package is deprecated. It was a good idea, but Scribe now uses a different system where it generates HTML directly. You can still use this as a basic PHP-based static site generator, but there won't be any new features or maintenance. For more fully-featured PHP SSGs, see jamstack.org/generators/ . Pastel Pastel is a tool for generating pretty API documentation from Markdown. Write your docs in Markdown and let Pastel convert it to a HTML page, complete with: mobile responsiveness syntax highlighting for code examples in multiple languages a table of contents for easy navigation search functionality automatic "Last updated" tag, so your users know how fresh the docs are a logo, if you like custom HTML and CSS helpers for when you want to apply special styles Want to see it in action? Here's what the output looks like. Pastel was forked from Documentarian, which is itself a PHP port of Slate, the API documentation tool. Here's

instagram-web-api

A Instagram Private Web API client Simple, easy and very complete implementation of the Instagram private web API. Support for all the main functions of Instagram Web Well tested, CI All test runs daily Install npm install instagram-web-api Usage Intance Instagram and call login method; this stores the credentials in memory. const Instagram = require ( ' instagram-web-api ' ) const { username , password } = process . env const client = new Instagram ( { username , password } ) client . login ( ) . then ( ( ) => { client . getProfile ( ) . then ( console . log ) } ) Using async / await in Node >= 8 const Instagram = require ( ' instagram-web-api ' ) const { username , password } = process . env const client = new Instagram ( { username , password } ) ; ( async ( ) => { await client . login ( ) const profile = await client . getProfile ( ) console . log ( profile ) } ) ( ) Save cookies to disk by using a though-cookie store.