Posts

Showing posts with the label api

C# Printer APIs to get the printed page number in a document [on hold]

C# Printer APIs to get the printed page number in a document [on hold] I want to ask if there is any win API function that can help in detecting the printed page number in printer jobs queue. as I know, there is a function that returns the number of printed pages, what I need to know which of the document pages are printed? Thanks Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

Bank API Data Developer Portal [closed]

Bank API Data Developer Portal [closed] I want to source data from my Capital One bank account as a small project. https://developer.capitalone.com/products/ Questions: Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

javascript fetch api template string

javascript fetch api template string I'm trying to make an app that gives you the weather based on your location. I get the location with ipinfo, and it works. I put the location in a variable, and when I console log it it still works. But when I try to fetch data from openweathermap with that variable using a template string this is what the console shows: Uncaught (in promise) ReferenceError: currentCity is not defined at getWeather The problem is when I copy that link to the console it returns a link that works! Thanks for the help const getLocation = async () => { const response = await fetch('http://ipinfo.io/json?token=(id given by ipinfo)') if (response.status === 200) { const data = await response.json() return data.city } else { throw new Error('Unable to get the current location') } } let currentCity getLocation().then((city) => { currentCity = city ...

ruby `rescue in block in connect': Failed to open TCP connection to api

ruby `rescue in block in connect': Failed to open TCP connection to api I am fairly new to ruby and I am having issues using code that I found on this github. It is meant to use the Whitepages API to use their service and I am using it to do a reverse phone lookup. Here is my whitepages.rb file: require 'json' require 'net/https' require 'uri' class Whitepages #Initialize the Whitepages class # * api_key - The API key obtained from the Whitpages Developer website def initialize(api_key) api_version = "1.0" @api_key = api_key @base_uri = "http://api.whitepages.com/" @find_person_uri = @base_uri + "find_person/" + api_version + "/?" @reverse_phone_uri = @base_uri + "reverse_phone/" + api_version + "/?" @reverse_address_uri = @base_uri + "reverse_address/" + api_version + "/?" @uri = URI.parse(@base_uri) @http = Net::HTTP.new(@uri.host, @uri.port) end #Retrieves cont...

WorkDay Human_Resources API Integration

WorkDay Human_Resources API Integration I have succesfully integrated both Human_Resources and Financial_Management using asp.net C#. So I'm putting all together all issues I had experienced and helpful resources I found online: WorkDay Documentation is available at: https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html To get started, read here http://hr.dovetailsoftware.com/gcox/2014/06/13/getting-started-workday-web-services-using-c/ make sure to follow some clean up tips on this article. If you get the same error while submitting data to WD Error There was an error in serializing one of the headers in message Get_ProjectsInput: ‘Unable to generate a temporary class (result=1). error CS0030: Cannot convert type ‘ConsoleApplication1.WkDay.Rm.Asset_Book_Rule_Request_CriteriaType’ to ‘ConsoleApplication1.WkDay.Rm.Asset_Book_Rule_Request_ReferencesType’ error CS0030: Cannot convert type ‘ConsoleApplication1.WkDay.Rm.Asset_Shares_Request_CriteriaType...

Is there an API endpoint available to access the new feed of “Info and Ads” publicly available for Pages [on hold]

Is there an API endpoint available to access the new feed of “Info and Ads” publicly available for Pages [on hold] Facebook just released a new public access to all the active Ads of any public pages (https://newsroom.fb.com/news/2018/06/transparency-for-ads-and-pages/), it would be interesting to have an API endpoint to read this info. Does anybody know if such an endpoint is already available or if there is a plan to provide one soon? Thanks This question appears to be off-topic. The users who voted to close gave this specific reason:

Chained fetches dependent on each other

Chained fetches dependent on each other Take the following scenario: I need to show in a table a list with all countries and the population of each country. All data can be queried from here: api.population.io. Thare are 2 api calls that can help me achieve what i want: As you can see i need to make 2 api calls since the second call is dependant of the name of the country made by the first call. I managed to make it work with the initial api call using fetch by using this code: fetch('http://api.population.io:80/1.0/countries') .then(results => { return results.json(); }).then(data => { //data.countries }) This just returns me a list with all the countries. Now i need to loop through data.countries and make a new api call for each country without breaking the whole process. I tried throwing another fetch call where data.countries is available while looping over data.countries but as you can imagine this breaks up the whole process, what i ...

Adding a Microsoft login page to my xamarin forms app

Image
Adding a Microsoft login page to my xamarin forms app I've been trying to implement a microsoft API in order for users to sign into my app using a microsoft account. I've tried using Auth0, but it has different code depending on the platform. My app is supposed to be a cross platform app that's native to both iOS and android. So basically I'm trying to find a way to implement it in the section highlighted in the image below. Any suggestions would be helpful. Also, i've found a couple tutorials and step by step walkthroughs but they're really complicated. I'm still new to xamarin and coding in general so I'm kinda looking for an easy fix here. And i'm pretty sure I haven't explained my situation in the best way but I can't really think of any other way of phrasing it. Thanks By clicking "Post Your Answer", you acknowledge that you have read our updated terms of servi...

Free and reliable API for currency conversion [on hold]

Free and reliable API for currency conversion [on hold] looking for Currency Conversion API which is reliable and free of cost This question appears to be off-topic. The users who voted to close gave this specific reason: programmableweb.com/api/currency-rates – ivanivan Jun 30 at 14:29