Unable to run Chatter api ios sample - ios5

I am looking for some samples which I can use to post/retrieve feeds to/from groups in sales force chatter. While googling I have come across Chatter REST API in conjunction with RestKit. I was unable to run this sample which i have downloaded from github
https://github.com/cseymourSF/Chatter-API-iOS-Sample
After running the code i am able to login to sales force via application. But for the below
Request :
Sending asynchronous GET request to URL ///services/data/v23.0/chatter/users/userId.
(ex:///services/data/v23.0/chatter/users/me)
Error:
User fetch failed with error: Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo=0xa58ffa0 {NSErrorFailingURLStringKey=///services/data/v23.0/chatter/users/userId, NSErrorFailingURLKey=///services/data/v23.0/chatter/users/userId, NSLocalizedDescription=unsupported URL, NSUnderlyingError=0xa5906d0 "unsupported URL"}
and the current url i am suing is below:
https://na15.salesforce.com/services/data/v23.0/chatter/users/me
any help could be appreciated.

It seems like REST API wrong method invocation

Related

Test on Redsys API

I am trying to make a post method on RedSys Api with the test info they have on the webpage https://pagosonline.redsys.es/conexion-rest.html, just to see the response. but I am getting
{"errorCode":"SIS0042"}
Which according to documentation means "Error on signature calculation"
This is what I am sending to the endpoint: https://sis-t.redsys.es:25443/sis/rest/trataPeticionREST
{"Ds_MerchantParameters":"eyJEU19NRVJDSEFOVF9BTU9VTlQiOiIxNDUiLCJEU19NRVJDSEFOVF9PUkRFUiI6IjE0NDYwNjg1ODEiLCJEU19NRVJDSEFOVF9NRVJDSEFOVENPREUiOiI5OTkwMDg4ODEiLCJEU19NRVJDSEFOVF9DVVJSRU5DWSI6Ijk3OCIsIkRTX01FUkNIQU5UX1RSQU5TQUNUSU9OVFlQRSI6IjAiLCJEU19NRVJDSEFOVF9URVJNSU5BTCI6IjEiLCJEU19NRVJDSEFOVF9NRVJDSEFOVFVSTCI6Imh0dHA6XC9cL3d3dy5wcnVlYmEuY29tXC91cmxOb3RpZmljYWNpb24ucGhwIiwiRFNfTUVSQ0hBTlRfUEFOIjoiNDU0ODgxMjA0OTQwMDAwNCIsIkRTX01FUkNIQU5UX0VYUElSWURBVEUiOiIxNTEyIiwiRFNfTUVSQ0hBTlRfQ1ZWMiI6IjEyMyJ9", "Ds_Signature":"Da5q+leqj4ytBKC3T0y/ThshxSe+8Wkh0wnn8Fx1wug=", "Ds_SignatureVersion":"HMAC_SHA256_V1"}
Does anyone know why I get that code if I am just trying to connect with the documentation info?

Nuxt Generate request failed with status code 500

I get an error while generating the project I developed with nuxt. There are codes in the related page that I use asyncData and send service requests. When I delete these codes, I do not get errors, but when there are request codes, I get the following error. I wonder why?
enter image description here

Facebook error: "(#100) Invalid parameter", "OAuthException", "code":100

In my messenger platform app, when I make this request:
GET https://graph.facebook.com/v2.8/${psid}?access_token=PAGE_ACCESS_TOKEN
(to get users public info based on their PSID), sometimes Facebook returns this error:
'There is an error when trying to get the user\'s info from Messenger:\nError: failed [400] {"error":{"message":"(#100) Invalid parameter","type":"OAuthException","code":100,"fbtrace_id":"FpUUkuX0egc"}}'
I have no idea why this happens, because when I saw the error then I manually made the same request (by using POSTMAN), I got the correct result (user public profile) with no error.
Maybe you can check if POSTMAN is sending something in the headers in a different way that you are doing. It happened to me something similar and it was that POSTMAN was "correcting" something.
Compare the request from POSTMAN and the one you are doing with your app side by side.
If that doesn't work, let me know and I'll look into another option. :)

sending the tweet in twitter in iphone app, getting the request failed error

Iam developing Iphone applications. i have integrated twitter in to my app, it is good up to login into twitter (authentication), but when we call method [engine sendUpdate] (for sending tweet), it says the follwing error has occurred.
Request CFE50DC4-02A0-46C1-BFF9-3F1F2E325C29 failed with error: Error Domain=HTTP Code=404 "The operation couldn’t be completed. (HTTP error 404.)"
Please tell me the solution.
Thanks
You'll need to upgrade your application to use the correct URLs.
In the case of API resource URLs, you want URLs that look like https://api.twitter.com/1/users/lookup.json
In the case of OAuth negotiation URLs, you want URLs that look like
https://api.twitter.com/oauth/request_token
Source: https://dev.twitter.com/discussions/2359
(I did not check it personally, Posting so that it may help others)
...i checked, (worked for me)
Replace: #define TWITTER_DOMAIN #"twitter.com"
With: #define TWITTER_DOMAIN #"api.twitter.com/1"
in MGTwitterEngine.m
Similar Post: Error 403 while getFollowers : Twitter Iphone MGTwitterEngine
HTTP 404 is a Not Found error, so it's likely that the URL you're using to send a tweet is incorrect.
Check what you have in your code with the twitter documentation at http://dev.twitter.com
Version 1 of the API is now deprecated. This document may describe an outdated version of the API. Please move to Version 1.1 of the API as soon as possible.
Go through this document.
https://dev.twitter.com/docs/api/1.1/post/direct_messages/new
Point to be noted
Api format should me json
Api version v1.1
sender and receiver should follow each other.
Example Request
POST : https://api.twitter.com/1.1/direct_messages/new.json
POST Data : text=hello&screen_name=rajneesh071

How to remove request url error from twitter apis in iphone

I am integrating twitter api in my application.
When I am trying to tweet I am getting an error:
Request A2C3E4D7-D3E8-47AD-A47C-3AC0DF2975A7 failed with error: Error Domain=HTTP Code=401 The operation couldn’t be completed. (HTTP error 401.)
I saw there is function defined with sendUpdate name. It is looking for parameter updateID and it is having zero (0) value all time. I am supposing this is occurring due to zero value in updateID.
Please help me. How to update in twitter from iPhone application. My consumerkey and consumersecretkey is right.
Thanks