http get request

Customise the HTTP request header info in NetworkTools HTTP Query Patch

Hi,

Would it be possible to customise NetworkTools HTTP Query Patch header info? In a similar way to Query Parameters. Now it is only possible to change the “Content Type” in the HTTP message header field, but I need to change everything in the header, even the “User-Agent” value.

This becomes a problem when trying to communicate with the unofficial Tinder API. Now who would not want to make a Tinder installation??? Their API is very strict in what it accepts and how it works. Might be because they have not actually published it, but it has been sniffed out by hackers. (https://gist.github.com/rtt/10403467)

I have the communication working with an external REST application (CocoaRestClient) with this information:

  • URL: https://api.gotinder.com/user/recs
  • Method: GET
  • Request Body: empty
  • Request Header: Content-Type: application/json Authorization: Token token=“XXXmyPersonalToken“ app-version: 371 x-client-version: 46103 Proxy-Connection: keep-alive Accept: / Accept-Encoding: gzip, deflate If-None-Match: "1217294773" platform: ios Host: api.gotinder.com Accept-Language: en-FI;q=1, fi-FI;q=0.9 User-Agent: Tinder/4.6.1 (iPhone; iOS 9.1; Scale/2.00) Connection: keep-alive X-Auth-Token: XXXmyPersonalToken os_version: 900001

What HTTP Query Patch sends as request header now and needs to be changed:

CONNECT api.gotinder.com:443 HTTP/1.1 Host: api.gotinder.com User-Agent: Quartz%20Composer/151 CFNetwork/673.3 Darwin/13.4.0 (x86_64) (MacBookPro11%2C2) Connection: keep-alive Proxy-Connection: keep-alive

Would Kineme be willing to update current NetworkTools HTTP Query Patch to a version that accepts changes in HTTP request header? Or any ideas on how to do a custom header HTTP request in Quartz Composer?

Kind regards,

.aku

Facebook Graph API and Quartz Composer

incubo's picture

This might be (and actually is) old information, but I think that it's better to publish this anyways. I managed to figure this out today.

Here is a simple example of how to get information from Facebook to Quartz Composer. This composition gets the names and profile pictures of your (or anyone else's for that matter) friends. For me it seems, that it doesn't get all of my FB friends to QC, but 717 out of 742 friends came just fine. It might be that this is because of the rather complex privacy policies in FB.

You will need your Facebook id and an access token to get it working. You will get both of these by logging in to FB and going to Facebook Graph API Explorer (http://developers.facebook.com/tools/explorer). The Explorer is a great way to find out what kind of information you can get from FB. The access token you get from the FB Graph API Explorer expires quite quickly, but I think that there is some way to get a long time access token. Not sure how just yet.

For me https://developers.facebook.com/docs/getting-started/graphapi/ seems a good way to start tinkering with Facebook.

The composition uses DataTools, NetworkTools and FileTools from Kineme as well as JSON to Structure from smokers (http://kineme.net/composition/smokris/JSONStructure).

So, shall we re-visualize social media then?