Can i post data to my wix site url ?
And how to grab data that i post to my wix site url ?
Thanks
Jerry
Can i post data to my wix site url ?
And how to grab data that i post to my wix site url ?
Thanks
Jerry
Hello @givemeawhisky
Thanks for your info, I already solve my problem by using wix-location API
with this API we can send data into our wix site by using GET data in our URL
I use this URL to parsing data and GRAB the data in my wix site
url: www.<our_wix_site>.com/?u=username&p=password
and i use this code to read the data that already post in URL
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
$w.onReady(function () {
// Read GET Query Data
let query = wixLocation.query;
// Login automaticly to Wix Site
wixUsers.login(query.u, query.p)
.then( () => {
// Redirect to home page without GET data
console.log("Login success =)");
wixLocation.to("https://www.helloworld.com");
} )
.catch( (err) => {
console.log("Login Failed =(");
console.log(err);
} );
});
Base on this information : https://www.wix.com/corvid/forum/community-discussion/wix-fetch-vs-wix-http-functions
And I Think wix-http-function is meant to build your own api on top of our Wix Application Backend, and will be consume by other website by using fecth process
And wix-Fetch is to access an External API (using get, post, etc)
Thanks A lot @givemeawhisky for your respon and comment
Regards
Jerry
Hi jerry
I do ve a problem which I think it is the same problem of yours. I need to transfer s variable from a c# code to my wix website. I know all about the http-functions and fetch. I did a simple node.js on my wix website to acknowledge that the http request created and I send to my wix website url from the c# code however I always receive 404 error and I dont know why!!?. All documentations shows that I ve to call my website url as www.{mywebsite domain}/_functions/ however I always returns 404 error. Please help me to solve this problem