3,417 Topics

Member Avatar for
Member Avatar for Benjamin_4

i want to know how i can get a json response from my node.js server and display the response on my web page ` var request = require("request"), username = req.body.username, password = req.body.password, url = "https://api.ecoachsolutions.com/main.php?ecoachsignin=1&server=remote&user="+username+"&pass="+password; console.log("url is "+url); request.get( { url : url }, function (error, response, body) …

0
122
Member Avatar for lithium112

I have a little problem with the SetParent API. On my local system, it works fine. But when I put the program on a virtual machine, the handle does not work properly. Here's what I've got in my code: var si = new ProcessStartInfo(filetoexec, args); si.UseShellExecute = true; si.WindowStyle = …

Member Avatar for lithium112
0
262
Member Avatar for ben.juarez.773

Hello, I'm working on a small project to acquire information from regulations.gov using their API. It's fairly simple (codewise) what I'm trying to do. However, I get stuck with a "HTTP error 403: Forbidden". It means I'm connecting, but something seems to be the matter. I've been in contact with …

Member Avatar for richieking
0
528
Member Avatar for Osagie_1

I've a json structure : { "Photos":{ "Photo":[ { "ID" : 111, "type" : "JPEG", "URL": "blabla" }, { "ID": 222, "type": "JPG", "URL": "blaaaaaaaaa" } ] } } Using php-jsonpath only (By stefan Goessner : http://goessner.net/articles/JsonPath), I want to insert a new data (array) into photo identified by 222 …

Member Avatar for Traevel
0
281
Member Avatar for PerpyProgrammer

Hello guys! I have an idea for daniweb that can get it more users. I know it's a fun forum, but there also is stack overflow. Which is very popular. But what if, we used the github API so that we can have collaborated projects on the forum. I posted …

Member Avatar for <M/>
-1
172
Member Avatar for RikTelner

I manage to copy/write/edit this code, but it doesn't seem to work, not even `alert();` is executed, it does exactly nothing. <?php // include "from_db.php"; ?> <!DOCTYPE html> <html> <head> <script src="http://maps.googleapis.com/maps/api/js"></script> <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" href="styles.css" media="screen" /> <script> function initialize() { var mapProp = { center: new google.maps.LatLng(51.509, …

Member Avatar for pixelsoul
0
213
Member Avatar for mjbor1

i developing a poster software, when i'm trying to post a link it give the following exception facebook api exception #100-invalid here's my code public static bool post(string accesstoken,string status,string link) { try { FacebookClient fb = new FacebookClient(accesstoken); Dictionary<string, object> postArgs = new Dictionary<string, object>(); postArgs["message"] = status; if …

Member Avatar for mjbor1
0
1K
Member Avatar for ~s.o.s~

***Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.*** **» Introduction to Java «** To start off, [Java](http://en.wikipedia.org/wiki/Java_(programming_language)) …

Member Avatar for ~s.o.s~
46
6K
Member Avatar for tNicknames

My localhost is running on self-certified HTTPS and I am using Stripe API. I am getting following errors: Warning: stream_socket_client() [function.stream-socket-client]: SSL: connection timeout in D:\xampp\htdocs\edplace_live\stripe\stripe\lib\Stripe\ApiRequestor.php on line 374 Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in D:\xampp\htdocs\edplace_live\stripe\stripe\lib\Stripe\ApiRequestor.php on line 374 Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://api.stripe.com:443 (Unknown …

Member Avatar for Jack_11
0
414
Member Avatar for manalibhadula

Hi guys Does anyone know any java api which can handle .xlsx file with 10lakh records? I have tried using POI XSSFReader, it is not supporting this much large file. My xlsx file size increases horizontlly as well as verticaly.

Member Avatar for David_50
0
105
Member Avatar for razamughal67

We add a Default Tweet Button API on my site. it's work perfect and load new window and send the tweet. but i want to get the value of the tweet count id. or if anybody click on the tweet button and submit a tweet . then my page show …

Member Avatar for razamughal67
0
388
Member Avatar for SimonIoa

Hello i have a problem with my website. It is running slow. I asked the my server provider why is that, and they replied its because the webiste uses many embedded urls like youtube, vimeo, dailymotion and so on. And so i have to cache these embedded urls. I tried …

Member Avatar for SimonIoa
0
604
Member Avatar for Osagie_1

<Root> ... <A CHANGE_THIS="Dont_ChengeME"> <B></B> </A> ... </Root> trying to change the attribute name of element A to something of my choice, using php's simpleXML API. here's what i've done: $xml = simplexml_import_dom($xmldom); $query = "root/A[@]"; $result = $xml->xpath($query); if(!empty($result)) $result['CHANGE_THIS'] = "Blalalalal"; //i believe this is where am doing …

Member Avatar for diafol
0
128
Member Avatar for gentlemedia

Apologies for such a vage title, but I seriously don't know where the two issues I have are related to. My JavaScript/jQuery skill is on a noob level, so bare with me please :) I'm working on a AJAX/HTML5 History website which is a pet project of mine. It will …

Member Avatar for Airshow
0
553
Member Avatar for Osagie_1

i have an xml structure: <root> ... <B ID="444"> <C></C> <D>Anything</D> <E> <child1 /*expected outcome came in here*/> /*sometimes here*/ </child1> <child2>data2 <!-instead of here-></child2> <child3>data3</child3> <child4>data4 /* and also here instead*/</child4> </E> </B> ... </root> i made an xpath query to fetch //*B, where child2==data2 and child4==data4 like this: …

Member Avatar for pritaeas
0
220
Member Avatar for BibhutiAlmighty

can anyone suggest me a good English Dictionary API for C# windows forms application. I tried using "NHunspell" but i found it very difficult to use ? Please Help !!!!!!!!!!!!!

Member Avatar for ddanbe
0
97
Member Avatar for senergy

so I have this code to draw screen to client area every 100ms HDC hDC = GetDC(hWnd); SetStretchBltMode(hDC, HALFTONE); StretchBlt(hDC, 0, 0, screen.right/2, screen.bottom/2, GetDC(NULL), 0, 0, screen.right, screen.bottom, SRCCOPY); DeleteDC(hDC); however whenever it draws the program freezes for a while (like 10ms), it's not really noticeable unless you move …

Member Avatar for triumphost
0
621
Member Avatar for ganesh641

Thanks in advance I have used periodic Ajax call for getting a value from the API result in WordPress with Ajax Here is my code Javascript code is : setInterval('getRecentAPI(oid)', 60000); function getRecentAPI(oid){ jQuery.ajax({ type: "POST", url: ajaxurl, data: {id:oid, action:'recent_value'}, success: function(result){ jQuery(".recent div").html(result); } }); } WordPress code …

Member Avatar for pritaeas
0
460
Member Avatar for Trle94

Hey guys, I have one site with API but it doesnt have any application for using api just codes how to use it, so i wanted to ask you for help. Is it possible to somehow get response from web and list it in listview? Response is looking like this: …

0
104
Member Avatar for bradly.spicer

I have this snippet below, I'm trying to query if a cast is online or not (That part works when I take it outside the while loop) but then in the while loop run through until I find an online cast and then keep it there. If I remove the …

Member Avatar for bradly.spicer
0
220
Member Avatar for accra

I have a gps sending data to mysql db, but am having hard time ploting the values on google map. My javascript skills are not very good, pls help... javascript code <?php $server = "localhost"; $username = "root"; $database = ""; $password = ""; $conn = mysql_connect($server,$username,$password); mysql_select_db($database) or die("Unable …

Member Avatar for Masterblank
0
2K
Member Avatar for moaz.amin.37

hello!I install tomcat server and set CLASSPATH variable `servlet-api` and my servlets running properly but when i compile and run my old program program of `java 2 SE` then it compile successfully but not run it prints an error message G:\Java>javac BinarySearchDemo.java G:\Java>java BinarySearchDemo Error: Could not find or load …

Member Avatar for JamesCherrill
0
233
Member Avatar for Deepesh_1

I have been asked to design an API that allows the user to do this and do that in c++.. What exactly is an API. In c++ is an API a .header file? Are the methods in class header file the API to allow user to interact with our .cpp …

Member Avatar for mike_2000_17
1
418
Member Avatar for yuri1000

I am new here to get answers for my issues, hoping for your kind advice. Thanks in advance. I have written a HTTP API to send SMS using curl. Everything is working fine, except I am failing to loop and post curl for certain phone numbers. For example: User uploads …

Member Avatar for pritaeas
0
322
Member Avatar for Knight_YUVA

Hi I want to create a plain c++ program which need to connect to SQL server through odbc and retrieve values and display it. I am using qt but i need it in plain C++ . can u anybody suggest the way to achieve it . and any free api …

0
64
Member Avatar for Ashok_10

hii, i want to create groups in user account with facebook application (php api) and i want to add friends of particular user to newly created group... Thanx

0
64
Member Avatar for dominic.ceraso.9

<?php require_once 'app/init.php'; ?> <?php echo View::make('header')->render() ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1499626773621182&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php if (Auth::check()): ?> <div id="body"> <?php // Walid $facebook_user_id = false; $facebookConfig = …

0
86
Member Avatar for lorenzoDAlipio

I need to know how many people are interested in learning how to write a desktop application using PHP? If I get enough interest on this topic, then I will write a simple tutorial on how its done. We (veedeoo and me) were experimenting on Desktop apps utilizing the [Daniweb …

Member Avatar for diafol
3
257
Member Avatar for bradly.spicer

Hey guys, <?php $url = "https://api.twitch.tv/kraken/streams/greatbritishbg"; $json = file_get_contents($url); $json = json_decode($json); var_dump($json); foreach($json->streams as $stream) { echo $stream->channel->stream . '<br />'; echo $stream->channel->display_name . ' is playing ' . $stream->channel->game . '.<br />'; echo '<a href="http://www.twitch.tv/' . $stream->channel->name . '">Watch Live</a>'; echo '<hr />'; $status = $stream->channel->stream; } //PSUEDO …

Member Avatar for bradly.spicer
0
576
Member Avatar for tNicknames

Fatal error: Uncaught exception 'Google_AuthException' with message 'Error fetching OAuth2 access token, message: 'invalid_grant'' in /var/www/html/edplace/dev2568/cron_files/google-api-php-client/src/auth/Google_OAuth2.php:115 Stack trace: #0 /var/www/html/edplace/dev2568/cron_files/google-api-php-client/src/Google_Client.php(131): Google_OAuth2->authenticate(Array, '4/He7CoB42K1zSX...') #1 /var/www/html/edplace/dev2568/cron_files/cron_job_for_export_and_sent_parent_list_to_google_drive.php(126): Google_Client->authenticate('4/He7CoB42K1zSX...') #2 /var/www/html/edplace/dev2568/cron_files/cron_job_for_export_and_sent_parent_list_to_google_drive.php(7): export_to_csv(Array) #3 {main} thrown in /var/www/html/edplace/dev2568/cron_files/google-api-php-client/src/auth/Google_OAuth2.php on line 115 error_reporting(E_ALL); ini_set('display_errors', 1); $clientId = "xxx"; $clientSecret = "xxx"; $authCode = "4/xxxx"; require_once("google-api-php-client/src/Google_Client.php"); require_once("google-api-php-client/src/contrib/Google_DriveService.php"); …

Member Avatar for justinbiber
0
572
Member Avatar for Heba_2

Hello everyone!!! Can anybody help me to fix this error... While running my game source code on command prompt i get one error. Note: tetris.java uses or overrider a deprecated API. Note: Recompile with -deprecation for details. please help me to fix it.

Member Avatar for JamesCherrill
0
114
Member Avatar for muralibobby2015

I am using mailgun. now i am sending mail from gmail to my domain. using mailgun api i am getting that and showing that content in my webpage. but when i am adding images in middle of the text or in signature of the mail image is not showing in …

Member Avatar for diafol
0
1K
Member Avatar for myfit

Hello all, I'm code php concern with google map api, run it don't alert error, still marker and display infowindows but map don't display, I need hear some advice or guide to solve it problem. thank for help P/s: Sorry that my ability of English is not good http://i1095.photobucket.com/albums/i472/OLAKEN91/ff_zps9e66a073.png

Member Avatar for veedeoo
0
275
Member Avatar for RikTelner

I'm here with Google Maps API. I've got map working, I learned how to set markers with custom images. I also made custom search bar and I plan to make PHP/SQL connection, so whenever user uses it, it saves copy of address in database so that it can be recalled …

Member Avatar for cereal
0
439
Member Avatar for PinoyDev

Good day! I just want to know on how to correctly use SendMessage API. When the save as dialog box popsup, Save button will be automatically click. Let say I have hwnd and classname value. Please see below Public Declare Function SendMessage Lib "user32" Alias "SendMessageW" (ByVal hwnd As Long, …

Member Avatar for SalmiSoft
0
857
Member Avatar for amvx86

I have an old API from a bas file, and I'm trying to convert it. I think I'm on the right track however, I keep running into some problems with it. I can post the old one, and the new one, with the edits that I've made. Is there anyone …

Member Avatar for amvx86
0
352
Member Avatar for vani krishnan

The API was working fine for the past few months ago..But now I'm getting a notice in that output and message is not delivered. The notice is -" Undefined offset: 1 in C:\wamp\www\sms\sms trial.php on line 90" line 90 in my code is $userID = $match[1]; please help me to …

Member Avatar for pritaeas
0
1K
Member Avatar for xardoz

Here is a sample of the XML I need to get the <Order Header> Nodes, then loop through the <Order Detal> <Line> Nodes Using xml Reader "Using reader As XmlReader = XmlReader.Create(New StringReader(sFileContects))", i get all the header information, but cant properly parse the Line Iformation Using LINQ "Dim xd …

Member Avatar for xardoz
0
146
Member Avatar for cbutler7

hi, i am receieving a repsonse from googles json api that has the formatted_address but i want to extract the city and county from either the formatted_address which is displayed in a label (lblAddress.text) or the JSON file Google gave me. so for example: Palgrove Road, Pennywell, Sunderland, Tyne and …

Member Avatar for J.C. SolvoTerra
0
2K
Member Avatar for shayan_doust

Hello everyone. I have just bought a new computer and I am currently working on creating an online cloud storage service. Every thing is going fine until I am struck with a problem. At first, registering a new user works and the data is inserted into database but after testing …

Member Avatar for matrixdevuk
0
2K
Member Avatar for grakovski

Link for API: [Click Here](http://api.uptimerobot.com/getMonitors?apiKey=u118216-ae6b502f1b3f6d272d0f9437&logs=1&alertContacts=1&responseTimes=1&responseTimesAverage=180&format=json) I want to get datetime and type parameters i try to but i get: Notice: Trying to get property of non-object Here is my try t $api_key = "apikey here"; $server = "http://api.uptimerobot.com/getMonitors?apiKey=$api_key&logs=1&alertContacts=1&responseTimes=1&responseTimesAverage=180&format=json"; $server2 = file_get_contents($server); $obj = @json_decode($server2); $cc = $alert->datetime; echo $cc; its …

Member Avatar for Isaac_4
0
388
Member Avatar for liphoso

Please assist, I am trying to get get one page out of three to load a google map once its loaded. the code i have is below. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="refresh" content="600"/> <title>Pollutions App</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } …

0
100
Member Avatar for fhau013

hello there can someone explain to me in an easier way what are these im a new employee in in telecommunication company viop services SIP- CTI- RFC- PBX- IP PBX- PSTN- CRM- TAPI- API- in the most simplist form cause i cant really understand these pls bare with me thank …

0
155
Member Avatar for patk570

Hello, I am getting a weird error when i try to run this array: //leafly api keys $appID ='Blah'; $appKEY = 'blah'; //init curl $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://data.leafly.com/strains/".strtolower($data)); //change the strain dynamically of course for your app curl_setopt($ch,CURLOPT_HTTPHEADER,array('APP_ID:'.$appID,'APP_KEY:'.$appKEY)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); //Clean it into an …

Member Avatar for broj1
0
1K
Member Avatar for ajdauda

I want to show a specific color based on the value i get from the Json response. i.e. if the temp = any number between 1 and 15 it will show a blue box below and... if the temp = any number between 16 and 25 it will show a …

Member Avatar for LesF
0
694
Member Avatar for Yorkiebar14

Hello, I'm having some problems with my jQuery script. It works correctly except it doesn't wait for the internal AJAX request to return before adding the variable data 'daa' to the HTML table variable. I debugged it a bit using 'alert' and I think it's adding the 'daa' data to …

Member Avatar for Yorkiebar14
0
508
Member Avatar for <M/>

Is there a possibility to create a cloud repository/storage for certain users to have access to? I was looking for ways to use something like google drive, dropbox, and github on the site but i am not sure where to find an api or some way to implement it... To …

Member Avatar for gabrielcastillo
0
280
Member Avatar for vegaseat

The idea of this thread is to help the beginning wxPython GUI programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! For info on wxPython modules see: http://www.wxpython.org/docs/api/wx-module.html

Member Avatar for HiHe
2
21K
Member Avatar for mangel.murti

I am just starting a project on google map. i am using below link to get user current location [Click Here](http://www.sitepoint.com/working-with-geolocation-and-google-maps-api/) how can i find other nearby users / places based on current lat , long? any suggestion help me a lot. thanks

Member Avatar for mangel.murti
0
136
Member Avatar for Tazman1058

Hello it seems like my IExplorer has been hijacked. I use Firefox for my browsing. My computer was running slow so i check Task manager and saw that Iexplorer was running in processes but not applications. Also noticed it mutiple IE processes running at same time. I end them but …

Member Avatar for Tcll
0
291

The End.