Okay, so this seems pretty embarrassing but I downloaded objectiveflickr and opened up the Snap and Run example, entered my API and Secret Key in the SampleAPIKey.h file and get the error:
error Supply your own Flickr API key and shared secret
Here is a screenshot of the error (Please be aware that's not a real API key or secret, I made it up for illustrative purpose!)
Error screenshot
I'm not new to iPhone/iPad development but I am completely new to adding this type of option to an app so thought if I could have a look at the example it would help me to figure out the implementation in my own app....the problem is I can't even get the example working which is slightly worrying!!
Once you have filled in your own info for key & secret in the .h file you just comment out the line above that says error
Simple as that.
Also note that the auth URL has to go into the info.plist file, not just in the .h so check out the sample and copy from that.
Related
My challenge is that I'm working on a public Flutter app and I don't want to expose my API keys in the source code. I'm specifically looking to inject the Google Maps API key into my AppDelegate.swift file.
Ideally I'd want to be able to pass this through with a .env file (and the then inject these keys as environment variables in CI/CD), but I'm also fine doing a --dart-define. I have not found any working example of how to get this working.
I'm able to get this working on the Android side of things without any issues.
You can save it as an plist dictionary, and add the reading code from the file. For example: https://stackoverflow.com/a/62916637/11798831
Also you could rename file by adding Bundle.main.path(forResource: "config", ofType: "env").object(...
You can do not commit it in the project, just keep it locally. Also add it as additional file in CI/CD.
I'm migrating from PHP 5+ to PHP 7+ on standard app engine.
To upload file, I'm making a POST request to an internal endpoint with all form data (text and file to upload).
Actually what I was doing on v5 to let this work:
Get the URL with CloudStorageTools::createUploadUrl
POST everything to the url returned from the step before
In this way, all posted form (text and file to upload) was posted correctly to my internal endpoint and file can be uploaded on google storage.
Migrating to php 7+ CloudStorageTools::createUploadUrl can't be used.
Direcly upload working fine, if file is not so bigger.
For bigger file I haven't still found a solution, a lot of people have this problem but seems no one actually solved it.
There is some workaround or some tips to solve it?
I've already tested different methods got from here: https://googleapis.github.io/google-cloud-php/#/docs/cloud-storage/v1.23.2/storage/readme
No one is actually working (I got URL where upload, but at the end of upload everything crash).
Google documentation about that is not so clear, they say you can't use the older library, but actually online I can find always the same basically code that it's not good for larger file.
Can somebody please explain me what is the purpose of using Google Tag Manager (GTM) on an iOS app?
Currently I am working on an app which part of the legacy configuration resides on GTM but I cannot find any purpose of this.
I've read the documentation but I find it very confusing.
It mentions to add GoogleTagManager pod, add the json corresponding to your container and "preview" it with a Custom URL Schema.
The things that I dont understand are:
Why adding GoogleTagManager pod if you are not using it in your app, there is no import or anything like that
Why download the container (json file) and add it into your project. Based on the documentation, it doesnt mention anything about linking this json file with your actual xcode project.
How by using a custom URL Schema will test your container? On the documentation doesnt mention anything about handling this custom URL schema.
So based on the documentation I dont find any purpose of using GTM at all. The thing that for me makes sense is when login an event using Google Analytics, by calling Analytics.logEvent..., but this is Google Analytics, not GTM.
I will appreciate if someone can provide some information about this.
Thanks in advance.
Google Tag Manager is used, when you want to change some custom event data on the build which is already live(on App store) and you don't want to resubmit the new build just for the event. For more details you can refer this link.
I am trying to write my first "helloworld" program to post on Twitter.
The program works fine with print("helloworld").
It also works with import tweepy.
But as soon as I try to assign my IDs, I get errors that it doesn't recognize the API calls. (see attached screenshot)
Maybe its obvious, but I am a beginner Python programmer, and I'm basically copying what I saw in a YouTube video.
code+terminal screenshot
You should be able to fix this issue by replacing the import with
from tweepy.auth import OAuthHandler
and then replace your auth= line with
auth = OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
Now as to why this is occuring - it could be dependant on what's being imported. If you have another tweepy.py file for example, it could be getting picked up as the file to import from, which of course, is likely wrong. Using the from import resolves this. You can find out which file was being used by adding (still using the code from the version in the image you posted)
print(tweepy.__file__)
This'll give you an idea whether the correct file was being imported or not.
Hope that helps.
I accidentally typed “python helloworld.py” instead of “python3”and it magically worked! So now I just run it that way.
I am trying to implement deep linking. I have followed the documentation and created the 'apple-app-site-association' file and very sure there is no mistake in the file format. The file has been placed in the root directory as well as the backend side.
My domain does not use https, only http. Does the file need to be signed irrespective of this?
Following is the apple doc which I used for reference document
I have read that there is no need to sign the apple-app-site-association file.
I am perplexed as to what I am missing.
When using HTTP, I think the answer may be yes. The documentation says that you don't need to sign the apple-app-site-association file if you are using HTTPS:
This leads me to believe that you may need to sign it if you are using HTTP. Apple's Validation Tool may be helpful to test this.
If you're still having problems after getting past the validator, see iOS9: Universal Links does not work, which has many good answers about the many things that can go wrong with deep linking.