AR - Google Scene Viewer - How did FCA do this? - google-chrome

Recently I came across FCA Website for CES 2021 and at a point, when you click on the first car you get a QR code. By flashing this QR code you are redirected to this page.
By decoding the URL and looking at how it was made, I first thought it was very easy to do. I removed some parts and tried to replace the models by one I did on Blender very easily.
Here is the decoded url:
https://arvr.google.com/scene-viewer/web?enableColorPicker&file=https://storage.googleapis.com/search-ar-vehicles/JhwKxj5FWvWq0XvZuDb4mZ7.glb&title=2021+Jeep+Wrangler+4XE&referrer=google.com:AUTOS:ces-c9&colorableMesh=Paint_Color_BD&card_content=https://scene-viewer-preview.appspot.com/scene-viewer/web/infocard?enableColorPicker&thumbnail=https://storage.googleapis.com/search-ar-vehicles/JhwKxj5FWvWq0XvZuDb4mZ7.png&file=https://storage.googleapis.com/search-ar-vehicles/JhwKxj5FWvWq0XvZuDb4mZ7.glb&title=2021+Jeep+Wrangler+4XE&colorableMesh=Paint_Color_BD&colorBaseUrl=https://storage.googleapis.com/search-ar-vehicles/colors/&referrer=google.com:AUTOS:ces-c9&carousel=[{"file":"https://storage.googleapis.com/search-ar-vehicles/JhwKxj5FWvWq0XvZuDb4mZ7.glb","title":"2021+Jeep+Wrangler+4XE","thumbnail":"https://storage.googleapis.com/search-ar-vehicles/JhwKxj5FWvWq0XvZuDb4mZ7.png"},{"file":"https://storage.googleapis.com/search-ar-vehicles/OK578yP7NrDgowmRIfYK4mu.glb","title":"2020+Jeep+Wrangler","thumbnail":"https://storage.googleapis.com/search-ar-vehicles/OK578yP7NrDgowmRIfYK4mu.png"},{"file":"https://storage.googleapis.com/search-ar-vehicles/FuLIQjyCrEVWMh4qu3cgaRf.glb","title":"2020+Jeep+Cherokee","thumbnail":"https://storage.googleapis.com/search-ar-vehicles/FuLIQjyCrEVWMh4qu3cgaRf.png"},{"file":"https://storage.googleapis.com/search-ar-vehicles/ZsKQhfMNeiRD52Wu9cKKxqB.glb","title":"2020+Jeep+Compass","thumbnail":"https://storage.googleapis.com/search-ar-vehicles/ZsKQhfMNeiRD52Wu9cKKxqB.png"},{"file":"https://storage.googleapis.com/search-ar-vehicles/Mct7cEaDUJhpiIZ9bUuShQA.glb","title":"2020+Jeep+Renegade","thumbnail":"https://storage.googleapis.com/search-ar-vehicles/Mct7cEaDUJhpiIZ9bUuShQA.png"}]&iosFile=https://storage.googleapis.com/search-ar-vehicles/JhwKxj5FWvWq0XvZuDb4mZ7.usdz&quicklookEnabled=true
But by replacing the model, I get an access denied from Google. I think it is due to the referrer parameter (here google.com:AUTOS:ces-c9) but then here I come to the actual question: How do you get your own referrer? Did anyone try to do this recently? Is the access denied really due to the referrer?
Here is what I tried
https://arvr.google.com/scene-viewer/web?file=https://filebin.net/kvl7eh5cvmkjossg/test.glb?t=s42h134s&referrer=google.com:AUTOS:ces-c9&iosFile=https://filebin.net/kvl7eh5cvmkjossg/test.usdz?t=cxc71ics&quicklookEnabled=true
Thanks :)

Related

Facebook Graph API returns a different response on a different script but same -not invalid- tokens

I am trying to make a simple python script that posts a text message to a facebook page using requests.
I actually managed to succeed this feat, however, when I add the same logic to a bigger project of mine, a certain request returns a different json.
According to this page https://developers.facebook.com/docs/pages/access-tokens I can exchange the short lived user token I generate in the graph explorer tool for a long lived one that lasts 60 days. This worked for me until now. When I run the same functions, same variables on another .py file that includes other logic as well the request does not return this line:
"expires_in": SECONDS-UNTIL-TOKEN-EXPIRES
And of course later on if I continue the logic and use the token it returns (which is the same) for, let's say, a make_post function the request prints
{'error': {'message': '(#200) If posting to a group, requires app being installed in the group, and \\\n either publish_to_groups permission with user token, or both manage_pages \\\n and publish_pages permission with page token; If posting to a page, \\\n requires both manage_pages and publish_pages as an admin with \\\n sufficient administrative permission', 'type': 'OAuthException', 'code': 200, 'fbtrace_id': 'AqYMMeOcOniWAGgEEtsEURs'}
Why does it not successfully return, the user token had not expired and it has the requires rights. Furthermore I tested this in a smaller .py file and it worked.
Another thing I found out here https://developers.facebook.com/support/bugs/523165725596520/?join_id=f1ff8392b49675c here is that other people have actually reported the same issue but it has been closed as 'intended by design' however there is no information of a solution.
Running the request in my browser also does not work correctly.
Do you have any ideas? I am completely clueless.
Thank you very much in advance
As #CBroe in a comment said, the expires_in didn't have anything to do with my error. The token it returns if valid. The issue I had later on had to do with the url I was parsing

Itunes connect has changed to invalid binary

After i upload my application to app store after is done is show me in iphone application "has changed to invalid binary" and in the itunesconnect is show
http://i.stack.imgur.com/4vPJN.png
any solution ?
My experience:
There are many potential bug in your project.
1 .there may be private function(the third part SDK ,e.g. Reveal) in the project
2 .Missing Info.plist key - the app attempts to access privacy-sensitive data without a usage description.
Solve:
Generally,you will receive email from apple. I suggest you read it seriously.
It will tell you what should you do because they find out "invalid binary"...
Then solve the problem.

GetOwnedGames from SteamAPI Not Working?

I'm trying to get the hours of TF2 played from Steam profiles for an application I'm developing. I'm not very experienced at manipulating JSON, so I'm not sure if the API is bad or if I'm bad.
According to this: https://developer.valvesoftware.com/wiki/Steam_Web_API#GetOwnedGames_.28v0001.29 I can call include_played_free_games to show TF2. However when I make a web request using this: http://api.steampowered.com/IPlayerService/GetOwnedGames/v1/?key=XXXXXXXXXXXXXXXXXXXXXXX&include_played_free_games=true&format=json&steamid=XXXXXXXXXXXXXXXXXXXXXXX
The request is valid, however TF2, appid 440, doesn't show up. So am I going crazy, or should this be working?
The user has to have played the game at some point for it to be returned when specifying 'include_played_free_games'.
From the API Documentation:
include_played_free_games: By default, free games like Team Fortress 2
are excluded (as technically everyone owns them). If
include_played_free_games is set, they will be returned if the player
has played them at some point. This is the same behavior as the games
list on the Steam Community.
The url requires a numeric value '1' for the parameters and will not work if you use 'true'. The following url worked for me when using my own steam id and web key:
http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=XXXXXXXXXXXXXXXX&include_played_free_games=1&include_appinfo=1&format=json&steamid=XXXXXXXXXXX

Scraping data after filling out form?

I'm doing a little project for my class and I'm just a beginner, so please forgive me if I mix up some of my terminology.
Basically, I'm creating an interactive journey planner for my city's public transit system. Unfortunately, they haven't made all the data I need publicly available. So instead of putting all my time into gathering the data for personal use, I've opted to do some screen scraping - letting their servers calculate the journey info from a START and STOP variable and then displaying the selected info on my page.
So is it possible to fill out a form's fields remotely, and then scrape the data on the page that subsequently loads? And if so, what would be the quickest, most convenient way? This happens to be a case where the data can't be manipulated via the URL, so it has to access the data by filling out the form first.
The website in question:
http://jp.translink.com.au/travel-information/journey-planner
Here is what you can do:
1.) Send a POST Request to the journey-planner with some data like that (be aware that CORS might jump in, then you could use cURL via PHP or whatsoever):
Start:Wickham Tce, Spring Hill
End:Upper Edward St, Spring Hill
SearchDate:10/05/2013 12:00:00 AM
TimeSearchMode:LeaveAfter
SearchHour:7
SearchMinute:40
TimeMeridiem:AM
TransportModes:Bus
TransportModes:Train
TransportModes:Ferry
MaximumWalkingDistance:1500
WalkingSpeed:Normal
ServiceTypes:Regular
ServiceTypes:Express
ServiceTypes:NightLink
FareTypes:Standard
FareTypes:Prepaid
FareTypes:Free
2.) You will get a new response location. This seems to be a REST link. Important for you is the id at the end. You will have to call that page and parse the HTML and look for a div with the HTML-id option-summaries, where you will find more information within the divs travel-option-1 to travel-option-n. You have to look at it carefully in order to find out which information is stored whee and how you will be able to use it.
In order to find such things you should learn how to use Firebug or Chrome's development tools.
This is one way to solve your problem. Probably not the best but still better than "screen-scraping" anything. But it will ask you for a lot of skills and effort. Furthermore if the data provider is going to change just a bit your solution will not work anymore. Additionally they might prevent your access by CORS or anything else (blocking your IP etc.)

bungie.net stats api

Has anyone tried accessing bungie.net reach stats api (statistics from Halo Matchmaking)?
As described here http://www.bungie.net/fanclub/statsapi/Group/Resources/Article.aspx?cid=545064
I can't seem to get any data returned, for example if i use this (with correct API key and gamertag values of course) ignore the first 2 asterisks ...
**http://www.bungie.net/api/reach/reachapijson.svc/player/details/byplaylist/MyIdentifierAPIkey/Gamertag
I don't receive a response - but no errors either, am i doing something wrong?
looking to use this for a Titanium (appcelerator) app eventually.
Any help or advice welcome, thanks in advance.
Unfortunately the API is not yet live to the public. I asked in a Private Message. They didn't say when it would be live.
In the Docs that Achronos posted, he put spaces in the URL's, I'm not sure if those are supposed to be there or not, so I tried it with the spaces and I got a 403 Forbidden error page. When I remove all the spaces, I get an error page that says:
Request Error
The server encountered an error processing the request. See server logs for more details.
I kinda can't check the server logs though... Bungie did say they were having some issues with the site though, so this might be a biproduct of that. I want them to get it working soon though, I wanna see just what it can do!