Goharika
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] WP API can't create a postI can suggest to put in headers ‘Content-Type’: ‘application/json’.
Also I have changed my authorization part, now I am using oAuth2, generating acces token and putting that in URLForum: Plugins
In reply to: [WordPress REST API (Version 2)] WP API can't create a postYes we should content-type as json I have add and that’s worling
Forum: Plugins
In reply to: [Beaver Builder - WordPress Page Builder] Logo on menu elementThanks for reply #hinampaksh
I have one more question.
I need add language translator on header, how can I do that, as that isn’t menu or widget, I have custom header.
I am sending URL https://pwy.digitalpome.com/, I need add right after search you can see space.
I have tried add shortcode and insert that via html module, but that doesn’t work as I want.Forum: Plugins
In reply to: [WordPress REST API (Version 2)] WP API can't create a postI have changed Basic Auth now working with oAuth, and there is no authentication error.
I am getting this when trying to update existing post
{
“code”: “empty_content”,
“message”: “Content, title, and excerpt are empty.”,
“data”: {
“status”: 400
}
}I am using postman tool for testing, I am choosing raw from Body tab and puting there my json
{
“title”: {
“raw”: “Hello Digital World!!”
},
“content”: {
“raw”: “Hello Digital Updated World!!”
},
“excerpt”: {
“raw”: “test”
}
}Resolved.
The reason was because of username and password.
We need put there client ID and client secret.
??Forum: Plugins
In reply to: [Beaver Builder - WordPress Page Builder] Logo on menu elementYes that is right option.
Thanks ??Forum: Plugins
In reply to: [WordPress REST API (Version 2)] WP API can't create a postMay it come because of https? because before getting ssl that works
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] WP API can't create a postHi does anybody have such problem too?
I have find some of forums that they are using oAuth for authentication,
or some of them say to logout from wordpress dashboard then try to authorize with app, but that doesn’t help.Forum: Plugins
In reply to: [WPML to WP API] Get one post languagesHi does anybody works with this plugin,
I need to get all translations of one post, how should I send request?
Or can I create new post by setting language?Forum: Plugins
In reply to: [WooCommerce] Create coupon with WP APII can suggest also to try to send POST request with Postman extension, that is google extension.
You should send your json data https://YOURURL/wc-api/v3/coupons?consumerkeys=HEREPUT Your consumer and secret keys, and send request,
That is great tool I am always using for testingForum: Plugins
In reply to: [WooCommerce] Create coupon with WP APIno I am livecode developer, that is another language, I have create app with livecode
Forum: Plugins
In reply to: [WooCommerce] Create coupon with WP APIAlso please check if your json is valid or not
In my case the problem was connected only with json
Can validate here https://jsonlint.com/Forum: Plugins
In reply to: [WooCommerce] Create coupon with WP APIHi chandan24892,
I have got that error because of json structure,
My json structure is like this
{
“customer”: {
“email”: “[email protected]”,
“last_name”: “Abrahamyan”,
“password”: “bareV2015”,
“first_name”: “Gohar”,
“username”: “goharika”,
“billing_address”: {
“last_name”: “Abrahamyan”
},
“shipping_address”: {
“last_name”: “Abrahamyan”
}
}
}I don’t know android, but may be you missing some { or ‘ ” ‘ ,
alert your json to see what are you sending.Forum: Networking WordPress
In reply to: Alternative to WPMU Pro-Sites?Hi all,
I am using Pro Sites plugin too, but want to use it with Membership 2 Pro, is there any way to integrate this 2 plugins? I need to make Pro Sites page available only for members.
Can someone guide me on this. May be there is another way to organize this.
So they should become member after can register their own blog.Forum: Plugins
In reply to: [WooCommerce] Create coupon with WP APIYes I know that can change status from app.
Just can’t imagine how payment will work with app.
I found this https://docs.woothemes.com/document/payment-gateway-api/
Is this mean I should create plugin to make payment work with app?