Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step by step installation and configuration of the API when the WebStore does not allow downloading it. #44

Open
Lewisihno opened this issue Oct 22, 2018 · 8 comments

Comments

@Lewisihno
Copy link

step by step installation and configuration of the API when the WebStore does not allow downloading, because I access the link to install the extension but says there is an error in the link, look for it but it does not appear, I would like to launch this Chatbot for some Labs that I have in mind: D

@rcarmonad
Copy link

Here is the answer for your question
#38

@Lewisihno
Copy link
Author

Thanks.
#38

now, to try!!

@rcarmonad
Copy link

@Lewisihno i've got an exception: Uncaught ReferenceError: Store is not defined.
Is this working for you?

I'm using chrome on ubuntu.

@yotam180
Copy link
Owner

@rcarmonad Let me update the code there and test it again. I will notify here when done 🙂

@yotam180 yotam180 reopened this Oct 26, 2018
@yotam180
Copy link
Owner

@rcarmonad I think I got it. Try again and keep me updated.

@rcarmonad
Copy link

Ok, i've been working on it and see that the main.js was more updated than the files in the ext folder.
I'll keep you updated.

@yotam180
Copy link
Owner

Yes it was. Try updating your git folder, the main.js file is now gone and I migrated all the changes and fixes to the extension api.js.

@rcarmonad
Copy link

There are some issues with changes on the json from whatsapp.
For example:

parseMsgObject: function(msg_object) {
			var m = msg_object.all;
			if (msg_object["__x__quotedMsgObj"]) {
				m.quotedMsg = API.parseMsgObject(Core.msg(msg_object.__x__quotedMsgObj.__x_id._serialized));
			}
			m.chat = m.chat.all;
			delete m.msgChunk;
			return m;
		},

m.chat.all does not works. So, i've eliminated the call to parseMsgObject.

Previously, was other issues, with de window.Store, but, it was solved on main.js, and now in the extension.
Let me know if i can help you in any way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants