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

"url is not a function" error #18

Open
rufengch opened this issue Jan 8, 2016 · 8 comments
Open

"url is not a function" error #18

rufengch opened this issue Jan 8, 2016 · 8 comments
Assignees

Comments

@rufengch
Copy link

rufengch commented Jan 8, 2016

Hi, bettiolo!
In the example in README, url is defined as a string, however, in the library it is defined as a function. When I used the code from the example, the error "url is not a function" occured. Maybe you can give it a new name instead of just "url" in the example in README.

Best,
Brody

@bettiolo
Copy link
Owner

Can you share some example code with me?

@bettiolo bettiolo self-assigned this Jan 11, 2016
@rufengch
Copy link
Author

Yes, here you can see that I changed url to yelpURL. Before I made that change, the devtool console showed "url is not a function".

@nunoarruda
Copy link

Same error here....

@bettiolo
Copy link
Owner

@nunoarruda thank you for the feedback, I will have a look on this ASAP.

@gabriel-anglada
Copy link

Hi! In my case, I was using cloudboost framework and it has a bug which I have just reported (https://github.com/CloudBoost/JavaScriptSDK/issues/18)

Fixing it, the error dissapears.

Hope it helps

@bettiolo
Copy link
Owner

bettiolo commented Jun 1, 2016

Thank you @gabrielAnglada

@springpriyanshi
Copy link

Hi team,

I am still getting this error with simple integration.var httpMethod = 'GET',
url = 'using rest_url',
parameters = {
oauth_consumer_key : oauth_consumer_key,
oauth_token : oauth_token,
oauth_nonce : oauth_nonce,
oauth_timestamp : oauth_timestamp,
oauth_signature_method : 'HMAC-SHA1',
oauth_version : oauth_version
},
consumerSecret = oauth_consumer_secret,
tokenSecret = oauth_token_secret,
// generates a RFC 3986 encoded, BASE64 encoded HMAC-SHA1 hash
encodedSignature = oauthSignature.generate(httpMethod, url, parameters, consumerSecret, tokenSecret),
// generates a BASE64 encode HMAC-SHA1 hash
signature = oauthSignature.generate(httpMethod, url, parameters, consumerSecret, tokenSecret,
{ encodeSignature: false});
Please suggest

@springpriyanshi
Copy link

Done guys just saw yelpurl changes Thanks

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

5 participants