openshop.io-android icon indicating copy to clipboard operation
openshop.io-android copied to clipboard

connection

Open sinku252 opened this issue 7 years ago • 9 comments

how to connect app to my woocommerce website

sinku252 avatar Jun 30 '17 07:06 sinku252

looking for same question.

abuzer avatar Jul 07 '17 15:07 abuzer

You'll have to create a web server for this mobile application.

basitanwer avatar Aug 14 '17 06:08 basitanwer

@basitanwer i have woocommerce based website but unable to connect wit tha app as I am unable to get Organization_id required in the app. How to get Organization_id required in Endpoint and Const java file of the app. Please help. Thanks.

rahulsinghmzp avatar Mar 06 '18 14:03 rahulsinghmzp

If you take a look at the const file you'll see the organization id is 4.

The best way to connect this app to your server is to install wireshark and listen to all the http requests (the json request and recieved). Then implement the json consumption accordingly.

Tell me if anything is unclear.

basitanwer avatar Mar 07 '18 04:03 basitanwer

@basitanwer Yes organization_id is 4 but does it will work for my website also? Or it will be generated for my website when integrated with apiary.io. I am getting the json response from my website at url==== https://www.zerggo.com/wp-json/wc/v2 . i placed this url in the endpoint java file for API_URL but getting internal error due to organization_id.

Also please tell what are the end points which i should use so that it app can communicate with web data. my website is https://www.zerggo.com. I have enabled REST API on my woocommerce website. where to put the customer and secret ket in the app for app and website integration?

i have done facebook_app_id and google gcm integration.

please help. Thanks

rahulsinghmzp avatar Mar 07 '18 08:03 rahulsinghmzp

These are just to many questions to answer.

Look, openshop.io is an opensource mobile application but that doesn't mean they want you to use it to go on creating your own application (i think). They want you to contact them to help you create a web server for a cost.

Their server goes down constantly, their documentation for the web server API is outdated and they are not actively participating in the issue tracker.

How i worked around was i snooped the requests sent and received using wireshark and adjusted the web server or at some point the app accordingly. If you are willing to do these hacks then please listen to the JSON data to and fro.

basitanwer avatar Mar 07 '18 08:03 basitanwer

bro @basitanwer if you could post the json datas here that would be great

nabil6391 avatar Apr 11 '18 18:04 nabil6391

Thats a lot of data. Can't you extract the data?

basitanwer avatar Apr 15 '18 14:04 basitanwer

Since the server is not running anymore i am unable to it... Please see if you can provide even a subset of the json data...

I just need this to run a dummy server and to understand how each object is mapped

On Sun., 15 Apr. 2018, 8:32 pm Basit Anwer, [email protected] wrote:

Thats a lot of data. Can't you extract the data?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openshopio/openshop.io-android/issues/45#issuecomment-381411051, or mute the thread https://github.com/notifications/unsubscribe-auth/AUL_G8pRVP6pHo5I36Qli4GnwXxcKqRaks5to1oHgaJpZM4OKOLc .

nabil6391 avatar Apr 15 '18 15:04 nabil6391