Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I need to use upsert() for an update. The request url is shown below.
https://api.mongolab.com/api/1/databases/db/collections/col+"?q={}&u=true&apiKey=key
It results 500 Internal Server Error. Without u=true the url works fine.
Thank you in advance
======== UPDATE =========
Current Solution. I send two requests. If the update request does not find any specified document, return 0, it will send another request for insert. This approach is quite expensive. Looking forward for better solution.
Cheers
Since you got an Internal Server Error you should probably contact MongoLab Support at support#mongolab.com so we can identify your specific account and go through the logs to identify the problem.
For your reference, here are our docs on updates and upserts via the RESTful Data API: http://docs.mongolab.com/restapi/#update-documents
Some initial thoughts, not having all the information: You don't specify the HTTP method you're using. For upserts (or any update) you'll need to use PUT. Also, updates assume there's a replacement doc or update modifiers in the body of the request.
Cheers!
Jared
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
Due to budget constraint, we are currently using Twilio ten digit number for SMS. We would like to capture "help" keyword when user texts us but appears that Twilio reserves that word and send back to user as "Reply STOP to unsubscribe...". The "help" word never make it back to our application.
Is there a way to resolve that?
Thanks for your help!
You can use Twilio Copilot (Messaging) service along with Advanced Opt-out which will allows you to customize the HELP response.
Getting Started with Advanced Opt-Out for Messaging Services
Customizing Users’ Opt-in and Opt-out Experience with Advanced Opt-Out
Twilio includes an OptOutType property in the request object sent to
the webhook URL configured for your Messaging Service. The value is
START, STOP, or HELP, depending on the incoming keyword.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
My plan is to make an app for iOS (and android when I've figured it out on iOS) in flash. I need to access data from an external mySQL-database that I will be putting on a webserver. I'm wondering what the correct way to go about this would be.
I've looked a little into AIR, Flex and JSON, but I need someone who knows what they're doing to put me on the right track. I don't need a super in-depth guide, just a hint in the general direction, I can do a lot of research myself, but I'm quite inexperienced in the whole accessing-external-databases-from- flash thing.
Thanks a bunch in advance!
-Flash Newbie
To access an external database you wouldn't use Flash directly, you would need some sort of middle layer (like PHP or Node or Ruby, etc) to get results out of the database and return them to Flash in some format it can understand (like XML or JSON.) This is commonly referred to as an API - it's kind of like a web site but it returns data in code instead of user readable html.
So the flow would look something like this:
Your iOS app would make a request for a url - something like this: http://myserver.com/users
You would have a server-side app (let's say PHP) deployed to a server handle that request.
PHP would query some database (like mySQL) and get the results. Those results would be formatted as JSON or XML and returned.
Your iOS app would get the results, and then you could do whatever you needed with it.
This is super-rudimentary explanation but there is a lot going on with what you're trying to do. My recommendation would be to get really familiar with calling API's on the web (you could use something like https://developer.forecast.io/ to get familiar with working with JSON and web requests) and then when you're feeling comfortable with all of that you could looking into working on the server portion. I don't know what your comfort level is with all of this but a lot of people focus on just one or two of these area's and not the entire stack. It can get overwhelming rather quickly. I haven't even talked about security, authentication, performance, etc... :D
Hope this helps!
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I've been trying to add basic app.net implementation into my ios app and having loads of trouble for reasons I cannot figure out. All I really want to do is something simple like this:
http://hashpan.com/dev/help/appnet_client_side.htm
I have looked at the documentation and the various objective-c wrappers and really can't figure this out. I find zero sample code out there as well which doesn't help. Specifically I keep getting this when trying to setup an authorization screen:
http://cl.ly/0o032Z1H1E2y
And yes I have paid the dev fee so I have the rights to their api. If anyone would be willing to spend a few minutes to help me that would be much appreciated as I'm not sure where to go for help with this. Thanks,
rc
It looks like you are trying to use one of the web flows.
Since it is an ios app, you will want to use either the password flow or the app.net Passport flow. The latter is probably what you really want to be doing. This allows users to authorize your app from the app.net Passport easily.
Password flow: http://developers.app.net/docs/authentication/flows/password/
app.net Passport auth: https://github.com/appdotnet/ADNLogin-SDK-iOS
Also, since you are on ios, you will be well served using ADNKit by #joeldev: https://github.com/joeldev/ADNKit
If you do indeed want to use the web flow, this error message probably implies that you have not setup the callback URL appropriately in the dev console for that app or that you are not escaping the characters in the callback URL properly inside of the authorization URL.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a blog on blogspot with url say myblog.blogspot.com. Now its getting around 30,000 page view in a month. I want to change the blog url as myblog.com.
But, I worry that the amount of traffic I have gained till now, will become nil because of new url. Google page rank and alexa rank will go to nil.
So, should I change the domain of my blog or not?
Maybe this Link will help you: How do I use a custom domain
It s a simple forward, so your rankings will not go to nil.
Your original Blogspot address will automatically forward to your new domain. That way, any existing links or bookmarks to your site will still work.
When you migrate from a sub-domain of blogspot to your own domain you must set up proper redirects. The redirects should be the permanent (301) type, not the temporary (302) variety). Permalinks should redirect directly to corresponding permalinks:
http://myblog.blogspot.com/ -> http://myblog.com/
http://myblog.blogspot.com/this-is-a-blog-post -> http://myblog.com/this-is-a-blog-post
You should also make sure you change all your internal links to make sure they don't mention your old sub-domain. If you control any external links, you should change those. You might even consider asking some webmasters to change the external links that point to your blog.
Even if you do the redirects correctly, there is a good chance that you will lose Google traffic for some time. The last time I tried a move from a sub-domain to a full domain (several years ago), I lost about 75% of my Google referrals for about 8 months. After 8 months, Google seemed to trust my new domain again and my traffic came right back.
Google has a change of address tool as part of webmaster tools. It is limited to use on "full-domains" and it won't work in your case because you are starting out on a sub-domain. Google has a help document that goes along with it which you may still find useful.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
i want integreate in my iOS app, a CrashData Report that send me the log of the crash automatically, and the feedback form to let the user to contact me for request, issue or suggestion, i have found a lot of service online, but the most are payment service, like:
http://www.crittercism.com/
http://www.bugsense.com/
http://www.hockeyapp.net/
or for feedback:
http://www.uservoice.com/
i have also see that there is a opensource for crashdata:
http://quincykit.net/
so maybe the best solution is create my server to host quinckykit, and receive feedback user direct on the server, so my question is, how implement this, what type of server or webhosting i have take?...and what hosting did you advise me, or some tutorial, i never did it...
You should check Instabug (http://instabug.com) it's very specifically serving feedback reporting with a smooth experience.
It shows a screenshot for the user to draw on other than the text field to enter the feedback in.
It also captures all the device details needed.
You can customize it as you want.
PS. I'm working at Instabug. So let me know if you need any help. It's free btw!
QuincyKit contains all you need to receive crash reports and work with them. The hosted solution HockeyApp uses the same open source SDK and provides much more advanced features. If you are not familiar with server hosting php and MySQL, I would recommend to use a hosted solution instead of the open source server component. Also crash symbolication has to be done on your Mac, which HockeyApp e.g. does all automatically for you.
The QuincyKit GitHub repository contains all information you need.
User Feedback is not part of QuincyKit or HockeyApp. I think Crittercism provides some user feedback features independent from crash reporting. I don't know if UserVoice provides anything you can integrate into your iOS app.