402 Topics

Member Avatar for
Member Avatar for Marcus_8

Hi everyone, I'm getting a 401 Unauthorized error when trying to call the Management API from my web app. I've already checked my token, headers, and API endpoint, but nothing seems to work. However, I’m still confused and can’t figure out where exactly I’m going wrong. I feel like the …

Member Avatar for Dani
1
45
Member Avatar for brother_1

I have 3 okta apps setup. Okta app for backend Okta spa app Okta web app The Okta spa app is able to use the access token it got and pass to Okta app for backend and the token is validated. However, the Okta web app access token when passed …

Member Avatar for maplestar
0
38
Member Avatar for FarrisFahad

I want to post Pins using Pinterest API. I have tried to generate code using ChatGPT but it returns an error. Here is my code so far ... <?php $clientId = "xxx"; // Replace with your App ID $clientSecret = "xxx"; // Replace with your App Secret $redirectUri = "xxx"; …

Member Avatar for Dani
2
41
Member Avatar for mateopg

Hello everyone, I’m working on a project to develop an educational software aimed at teaching programming logic to beginners. The app will focus on short questions and mini-games to make learning engaging and interactive. It’s targeted at university students in their first semesters and will primarily use Java as the …

Member Avatar for PabloRef
2
82
Member Avatar for FarrisFahad

Hey, I am trying to connect to Twitter API version 1.0. I want to post a tweet on Twitter using API. I don't want to use any libraries because i am trying to learn. I have written some code with the help of ChatGPT. I am having issues with the …

Member Avatar for turhost
0
85
Member Avatar for jimbrown.dm

Hi all, I’m currently working on a WordPress website where I display daily prayer times. Right now, I’m using web scraping to fetch the prayer timings on this website salatalert.com, but I’m facing issues with reliability and accuracy. The scraped data sometimes fails to update correctly, and it’s also affecting …

Member Avatar for jimbrown.dm
0
97
Member Avatar for cambalinho

heres my timer class with a module(on a group project for create a DLL): 'Module: Option Explicit Private Declare Function SetTimer Lib "user32" (ByVal hWnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long Private Declare Function KillTimer Lib "user32" (ByVal hWnd As …

Member Avatar for rproffitt
0
58
Member Avatar for FarrisFahad

I want to understand how I can add an SDK to my PHP projects to make APIs calls. I noticed that every software company have an SDK. I also noticed that most SDKs use Composer. I don't know what composer is and do I need to have it for every …

Member Avatar for pritaeas
0
95
Member Avatar for FarrisFahad

Hello, I am somewhat new to APIs. I have integrated PayPal payments successfully. With PayPal, I can send the user to the payment page using an HTML form. Here is an example ... <!-- PAYPAL --> <form action="https://www.paypal.com/cgi-bin/webscr" method="POST" name="_cart"> <input type="hidden" name="cmd" value="_cart" /> <input type="hidden" name="upload" value="1" /> …

Member Avatar for pritaeas
0
81
Member Avatar for FarrisFahad

I am trying to create my first successful API request. I want to post on my twitter account. I have created the developer account and generated consumer key and secret as well as access token and secret. I have also obtained the bearer token. I want to post on Twitter …

Member Avatar for Dani
0
140
Member Avatar for Mindmade
Member Avatar for Dani

I received this email: > > Hello Google Developer, > > We're writing to let you know that we detected the use of an embedded webview in requests to Google's OAuth 2.0 authorization endpoint in the past 120 days associated with one or more of your OAuth client IDs listed …

Member Avatar for Dani
0
443
Member Avatar for dimitrilc

## Introduction ## Based on the 2020 Java Ecosystem survey from Jetbrains, 75% of Java developers are still using JDK 8. JDK 11 introduces `HttpClient`, which replaces the legacy `HttpURLConnection` API. For this tutorial, we will build a `HttpClient` that consumes the free Cat Facts API. ## Goals ## At …

Member Avatar for JamesCherrill
3
479
Member Avatar for dimitrilc

## Introduction ## This tutorial teaches you how to create a Spring Boot application that provides RESTful API Endpoints. These endpoints are best consumed by other applications or for integrating with a SPA (Single Page Application) frontend such as Angular. For the purpose of this tutorial, we will create a …

2
379
Member Avatar for questionpond

Created a stored procedure as REST web service and return values as 1 and how to consume in Client applciation in c#. please help me how to send parameters through HTTP POST uisng HTTP client .

Member Avatar for rproffitt
0
51
Member Avatar for nanakumi75

I hope someone can understand my question and offer some help. I am creating a Flight Booking application with Amadeus APIs. I have a flight search form on the index page with hbs template engine. The form submits to /auth/flights for processing. I then want to display all error in …

0
29
Member Avatar for Tarzan_1

Hello, I am creating an app that will list the recent govt job openings. For this, I am looking for some solution that can give me updates for jobs. I know there is no such API available that could do this job. I am thinking to scrape some websites that …

Member Avatar for Christine_14
0
71
Member Avatar for naheedkassam

Dear Friends, I have a web API I developed using asp.net c# with uri "https://www.xxxxxxx.com:82/api/pincheck" with the function called "getuser". I want to use this API to authenticate login to an android App. I am building the app using Android Studio One. The user enters a six digit pin, the …

0
37
Member Avatar for misstj555

Hello. I am making a database using SQLite. Then I need to make an API with functions that returns information about that database. Then I need to print out a report. However, when I try to return an answer to a query using inputs, nothing is returned. I either get …

Member Avatar for John_165
0
422
Member Avatar for Paulo_7

good afternoon, I have been trying to use "login with facebook" on my website for 15 days. I have been using the code published by Facebook, at the link https://developers.facebook.com/docs/facebook-log... web / v2.2. My problem with this code is that I want the customer after login with his facebook (through …

Member Avatar for Dani
0
266
Member Avatar for jeffmylife

# Introduction # This tutorial provides guidance on gathering data through web-scraping. However, to demonstrate the real-life issues with acquiring data, a deep-dive into a specific, complicated example is needed. The problem chosen, acquiring the geographic coordinates of gas stations in a region, turns into an interesting math problem that, …

Member Avatar for OfeliaPoore
2
3K
Member Avatar for Gloak

I have been trying to get Lat Lng from this code using the same call to Google Geocoding API, but I have not found a way. Any suggestion would be greatly appreciated! /*! * geotext v1.0 * * https://github.com/Frizzled/geotext * * Copyright (c) 2014 Vladimir Loscutoff * Released under the …

Member Avatar for Gloak
0
1K
Member Avatar for Dani

We have a Swagger file for our API, but in our API documentation, we want to show valid responses for each endpoint. I coded up this little recursive function in PHP which takes our Swagger file and spits out a valid response. I use it as follows, for each individual …

0
2K
Member Avatar for Dani

I'm looking for some alternatives to Swagger UI that I can use with my API's swagger file to generate our official documentation. So far I've been looking at Apiary and ReDoc. Does anyone have any favorites? Which are the most intuitive for api documentation? Ideally I'd be looking for one …

Member Avatar for pankaj_patel
0
3K
Member Avatar for baig772

I am using `passport` in `laravel` for authenticating my users in APIs. I am able to authenticate different types of users from different tables and generating different token for them but the routes are not protected. For example. A user can access the routes like this Route::group(['middleware' => 'auth:api'], function …

Member Avatar for PARDEEP_2
0
982
Member Avatar for Sergi_1

I am looking for an API that will be easy to use, also allows me view reports of sended SMS, that also has documentation and examples to how manage it.

Member Avatar for Tran_10
0
303
Member Avatar for pardeep3dec

Dear Experts, I want to develop a application that send sms on any mobile. if any one done this project then kindly give some important consideration for developing this application. Best Regards, Pardeep

Member Avatar for Tran_10
0
530
Member Avatar for davy_yg

Hello, I am testing the instagram api. And trying to figure out way to get the token. It shows in this video: https://www.youtube.com/watch?v=fGMk8daxF08 By click the client ID twice it will shows me the get token form. Yet, this is not in my case. I cannot click the client ID …

0
225
Member Avatar for Smith5646

I have written a REST API using C# that runs on my server. When it is started, I want to preload some data from the database based on the organization that has purchased it (name, address, etc). However, I can't seem to figure out the name of the initial program …

Member Avatar for KushMishra
0
431
Member Avatar for saravananosiz

we can get a stock details in yahoo using the following url . but how can i get stock details using market cap value ,divideend value ,pe ratio ,pro rating instead of sending s=GOOG in the url http://finance.yahoo.com/d/quotes.csv?s=GOOG&f=snd1l1yr second thing i get chart data using the following url http://chartapi.finance.yahoo.com/instrument/1.0/GOOG/chartdata;type=quote;range=5d/csv/ but …

Member Avatar for cereal
1
2K
Member Avatar for adaykin

Hello, I am looking for an API that will feed me soccer stats from leagues like the EPL, Bundesliga, Serie A, and La Liga such as personal player information (name, height, weight, dob, etc.), player statistics (goals, assists, minutes played), as well as results from games. If anyone knows of …

Member Avatar for binkish
0
942
Member Avatar for Chiquito

Hello!. I am trying to sign an xml with a key (.pfx) and when I sent it to who should receive it I get in response "Incorrect reference digest value". I am working with C# and** I need your help** to solve my problem. Here is my code, which I …

Member Avatar for Traevel
0
4K
Member Avatar for can-mohan

Hi, Below command will give the cpu and memory usage of process in terms of percentage. can we achieve same usin c/c++ API. ps -C <process name> -o %cpu,%mem | tail -n 2

Member Avatar for can-mohan
0
4K
Member Avatar for Dani

I'm trying to create a new version of Dazah's API to be fully RESTful. To that end, I'm following the article at: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api I understand that it's bad practice to have endpoints that are verbs, and you should always use nouns. But what would an endpoint look like to join …

Member Avatar for diafol
0
968
Member Avatar for amith_ami

I have affiliate api of amazon,ebay,flipkart and snapdeal. I want to combine all api results to my web page with pagination. Like this website https://www.compareraja.in/mobiles.html If possible please suggest any ideas. I am using opencart for development.

Member Avatar for cereal
0
472
Member Avatar for Dani

Dazah API uses Redis to handle rate limiting. The goal is to limit every each client_id/user_id pair from making over 5,000 requests every 5 minutes. We use Codeigniter 3.x and it looks something like this: $flood_control = $CI->cache->get("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); if ($flood_control === false) { $CI->cache->save("user_limit:{$token_obj->client_id}:{$token_obj->user_id}", 0, 300); } else if ($flood_control …

Member Avatar for cereal
0
769
Member Avatar for rchawdhari

Hi everyone, I have to integrate SOAP api using SAVON gem When I am calling url it gives reponse and operations too But When I call methods and posting data it gives me error client = Savon.client(wsdl:"http://netconnect.bluedart.com/Demo/ShippingAPI/WayBill/WayBillGeneration.svc?wsdl") client.operations => [:generate_way_bill, :import_data, :cancel_waybill] client.call(:generate_way_bill, message: data) => The server was unable …

0
425
Member Avatar for Dani

I'm working on building a Swagger JSON file for my API and I'm looking for a free tool online to test and validate it. Perhaps even an online tool that lets me upload my swagger JSON and builds out documentation from it where I can test it out ... as …

Member Avatar for Dani
0
298
Member Avatar for Siberian

I'm creating a pseudo type script at the moment using a well known programs API which uses JS. When the user is prompted and enters in a name since the API uses ECMA 3.0 I cannot directly use String.Prototype.Trim() as it's not supported in ECMA 3.0. I have a prompt …

0
279
Member Avatar for Ivan_10

Hello there, i have problems with { "error": "invalid_grant", "error_description": "Bad Request" } " curl post request to https://www.googleapis.com/oauth2/v4/token I can't obtain new access_token... Here is my code: // These come from your client_secret.json file $clientID = "6590728998701b5184dev3d16dhgphu7b12me015bo9v.apps.googleusercontent.com"; $clientSecret = "pKAISh1d10k4vP7r1fDX20pJ"; $token_uri = 'https://www.googleapis.com/oauth2/v4/token'; // Build the URLEncoded post data …

0
228
Member Avatar for Mr.M

Hi, I get "first-chance exception at 0x1000161f in myapp.exe: 0c0000005: Access violation reading location 0x00000000." If i execute the WFSOpen command. To be able to receive the error pointing to the correct error value I've done this: LPHSERVICE lphService; lphService = 0; // I put 0 because the EXIT_SUCCESS is …

Member Avatar for Mr.M
0
2K
Member Avatar for karthik_ppts

I have purchased SMS gateway from one hosting company. How can i integrate my SMS gateway with my website?

Member Avatar for swatisharma08
0
1K
Member Avatar for Johnrednex

I'm using the BullionVault API to view my orders. I use the requests from the official documentation https://www.bullionvault.com/help/xml_api.html and python language. My issue is **the request response is the HTML DOM of the BullionVault login page**. Here is my code: login_page_url = "https://or.bullionvault.fr/secure/login.do" login_page_url2 = "https://live.bullionvault.com/secure/j_security_check" payload2 = {'j_username': 'myusername', …

Member Avatar for Johnrednex
0
1K
Member Avatar for Amr.Mohammad87

Greetings, I am a newbie in web development and I am working on a website backend using ***ASP.NET***, ***Bootstrap***, and ***jQuery*** and I need to upload files, simply photos, that will be used to be displayed on the frontend banners. I already used the HTML5 file API to read the …

Member Avatar for AleMonteiro
0
372
Member Avatar for nitin1

Hey, I have visited Daniweb after few months. I have seen "API" options in my profile. How can we use it? Is it similar to fb apis, twitter apis? Thanks.

0
238
Member Avatar for Lau_1

Hello, i want to know, is there any way to force user can only select the address provided in dropdown list? Currently everything working well, but user can proceed without select the address from the dropdown list, can anyone help? Thanks in advance <input type="text" class="form-control" id="address" name="address" required> <script> …

Member Avatar for AleMonteiro
0
1K
Member Avatar for Mar. Na.

Hi,i want to use this ClassParser to parse another file(class) in another package , in my code i used ClassParser to parse only existing file (class) in existing package ,,,how can i use it to parse any file and from any package ,if i can't use it ,is there any …

0
278
Member Avatar for Mar. Na.

Hi, in this code how can I calculate coupling between objects CBO in java after parsing java file using registerCoupling method and retrieve any coupling between classes through argument, class name,type and so on .....

Member Avatar for rproffitt
0
2K
Member Avatar for Darth Vader

Hello, I have an application that is not mine, that has 6 textboxes with values on it. I am trying to use the windows API to retreive the values from those textBoxes. I know that they exists in a control named "Panel1". So I have come so far in the …

Member Avatar for Suzie999
0
730
Member Avatar for samantha2015

I try to implement this oauth2 config in my web application https://github.com/ksoumi/SpringSecurityOAuth2. The only difference is that he used an authentication manager with hardcoded username and password. I already have a login with spring security. I have merged only the oauth2 config in my spring-security.xml. I get HTTP status 404 …

Member Avatar for samantha2015
0
1K

The End.