Ajax contact form returnig 0
I have read through a lot of responses on this site and am unable to find the issue with my code. The form is : <?php while (have_posts()) : the_post()?> <form method='post'...
View ArticleCan ArcGIS Export Web Map task print labels from a Feature Layer?
I’m creating json to create a custom printout using the Export Web Map task on an ArcGIS server (v10.2). Everything works as expected apart from labels are not showing in the generated printout. The...
View ArticleIs it bad to store data in JSON form or should I use mySQL? [closed]
I’ve been building an application and the whole thing is built around a simple data storage system. Create an array. Convert it into JSON. Add <?php die() at the beginning to prevent access. Save to...
View ArticleShould I omit database and server communication (after initial response)?
I have a project that I’m working on where a user uploads a big file which gets parsed by the backend, and then returns the data back in a friendlier format. Now I’m wondering whether I actually need a...
View ArticleRequest signing for REST API
I am building a REST API that will receive requests like: GET /api/entities GET /api/entities?filter=X&sort=Y This seems straight forward: have the client HMAC(path + query, key), send me a key...
View Articlenull vs missing key in REST API Response [closed]
Say in my application, some users give us their last name, and others do not. In a REST API response, which body is preferred: With a “null” value: {"firstName": "Bob", "lastName": null} Or just a...
View ArticleJSON not valid after json_encode posts
I’m having problems saving JSON in a custom table in my database. I pull some posts (+ connected posts) from the database and add them to an array. This is a part of my array: array(2) { ["post"]=>...
View ArticleDelete Entries in File if the Same Entry Exists in a Master File
I have a JSON master config file whose value may be overwritten by a specific account’s config file (also in JSON). The Master file has this structure: { "section1Configs": { "setting01": true,...
View ArticleHow can I get user information from user ID?
I am writing a very small C# console app and I am making an HttpWebRequest to get the list items in a task log and send a daily summary email to everyone with something ‘assigned to’ them, showing what...
View Articleinserting json document with `.` in key to mongodb
Firstly, this is more of a design question than a programming question. I am creating an application where I have to fetch existing json data and insert it into mongoDB. I found that some of the the...
View ArticleGrouping in long tables
My application is running over Postgresql 9.4 and I found a problem and I don’t know how can I fix it. I’m runing VoIp application, and we have a few tables that are too long (>60M of rows) with all...
View Articlegeojson coordinate conversion to the format of the data coming from PostgreSQL?
I use hibernate spatial and geotools this is save to vector code : if (vectorType.equalsIgnoreCase("Point")) { LineString point =new GeometryJSON().readPoint(item.getData()); lineString.setSRID(3857);...
View ArticleHow to create authentication token in the HTTP header request for Json view
I have a view listing some fields from a content type then i made it in a Json format using View DataSource module, all is ok with me tell now i want to add authentication token in the header request...
View ArticleHow to generate a JSON file from stored procedure(SQL) result
I want to get the data from DB using stored procedures in the form of a JSON file. In simple words, my output should be a JSON file which should be the result of data in DB (collected by a stored...
View ArticleWordPress ajax load more returns duplicated posts
I’m trying to load more posts from my custom post type via ajax call, it sounds like i’m doing everything alright but one thing which is causing the duplication issue. My load more button does work...
View ArticleREST export doesn't give image URLs
We have a headless Drupal 7 project that uses express and handlebars for it’s front end. I’m experimenting with updating the backend to use Drupal 8. I’ve created a REST export type view, but when you...
View ArticleWP REST API returns post image URL with double backslashes
I’m trying to create a mobile application that use WordPress as a backend CMS, i was able to get the JSON output using WP REST API and reuse what i need from the output in my application, but i have a...
View ArticleEncrypt/sign a client-to-API request?
We are building a JSON API on top of our Ruby on Rails Web application, using JSONAPI::Resources to expose endpoints and Doorkeeper to handle user authentication. Most of our API endpoints will be...
View ArticleHow to fetch all the details of a marketplace organization's page on Drupal.org
I am new to Drupal. I am trying to fetch all the details of a marketplace organisation’s page, which are visible on drupal.org. I am using the node id to access...
View ArticleJSon REST API. Retrieving items in lists. Workflows
Using this: http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=224 I was able to make a workflow that loops through lists. Now I understand adding ?$top=5000 at the end of my URL I can pull more than...
View Article