From the get course api, i get a link to the overview file uploaded.
fileurl: http://{domain}/moodle/webservice/pluginfile.php/50/course/overviewfiles/image1001.png
When i try to access it from browser, i get below error:
{"error":"A required parameter (token) was missing","errorcode":"missingparam","stacktrace":null,"debuginfo":null,"reproductionlink":null}
Moodle version: 3.8.2
What do i need to do? Where do i need to pass token? Is that token same as the Webservice User Token?
Oops i found the solution. Instead of "wstoken", you need to append "token" to the url.
eg: http://{domain}/moodle/webservice/pluginfile.php/50/course/overviewfiles/image1001.png?token=USER_TOKEN
Related
I am trying to update the token metadata for my existing token. Is there any other steps needed to be carried out to update the token metadata correctly?
I have updated the token metadata by using Strata Protocol Token Launchpad (https://app.strataprotocol.com/edit-metadata) 1 week before. But it didn't reflect on the token logo and name at all on the Solana Explorer.
Token Address: https://explorer.solana.com/address/7KG5WNqNbUdXY5MBX7TUVZMTSD5cGoYxwYwry96GD1sM/metadata
How can I update token name and logo correctly?
How can I edit or remove the social channels link with metadata?
Any help is appreciated as always. Thanks in advance.
The new standard to SPL token metadata is actually that the same of NFT's now.
Each token will have it's own token metadata account (which will need creating if token was created via the SPL Token CLI), in your case once was created for you if you used Strata to create the token.
Updating the SPL token metadata is now as simple as updating an NFT on Solana. Various tools such as https://metaboss.rs is one, Strata website should also work to update the token tool. I've also got a site which after testing updates tokens too just fine but at the moment adds in some unessaccery data related to NFT's, but functions. If you wish to try that let me know in a comment.
If Strata doesn't work for you you could try Metaboss.
You'll need to first upload an image and a JSON file to arweave that you would then link to each other.
Upload Image to Arweave or similar.
Create and upload a new json file (to arweave or similar) with a few attributes inside it.
https://github.com/solana-labs/token-list
You can see from the above document at Solana Labs that you need
{
"name": "TOKEN_NAME",
"symbol": "TOKEN_SYMBOL",
"description": "TOKEN_DESC",
"image": "TOKEN_IMAGE_URL"
}
in your JSON file. Your image URI should be a link to the image you uploaded in step one.
You can then use the update commands at metaboss to upload some onChain details such as name, symbol, and the URI.
https://metaboss.rs/update.html
Hmm got same problem here,
In my case, I setAuthority of the SPL token to null right after initiate and mint to make sure no one could ever mint more.
What they said "You must have mint authority in order to create or update the metadata", mean that existing spl-token have no way to update their metadata.
I am trying to write a protractor test that allows me to log in to the application. Currently, when i authorize my account, oauth generates an authentication token, and gives it to me in a https format. As of right now, the only way i can access the application is to simply take the "s" out of the https in the URL, and i will be able to access the app.
an example of the URL that is returned when i authorize my account is :
https://localhost:3000/#/authorize?oauth_token=escgPGm9si5N
All i want to do is have protractor take the secure connection URL, delete the s in https, and keep everything else and use that to keep moving. Since the authentication token changes every time, i cant store it as a variable. I am pretty sure I will have to use browser.getCurrentUrl, but i don't know what to do next. Any help will be greatly appreciated
If you only need to throw the "s" out of the https, you'll be good with below:
browser.getCurrentUrl().then(function (url) {
//here the url is just a string!
var correctUrl = url.replace("https", "http");
//now you can do whatever with the correct url, like go to it
browser.get(correctUrl);
});
Please let know if you need anything more.
i am using this libray https://github.com/crino/instagram-ios-sdk after login we getting one error
we created app in instrantgram like :
i have add URL scheme to my application's plist file
how to solve this issue please help me
i got my mistake
Redirect url ig3213f9bbab4841aba216996a24e9138e://authorize
It is clearly stated in the Instagram iOS SDK documentation that the URL Scheme needs to be structured as:
ig[clientId]://
So in your case:
ig3213f9b...
Will not work, try
ig32313...://
You are using OAuth and you are trying to run it on browser.
What you are missing is your OAuth Token, Please check if its there when you hit the API in your code.
May be it can help you..
set the call back url like this:
I found a good tutorial for building Facebook membership Authentication website which demo file is here > http://niftyandcrackerjack.com/sites/default/files/Test.zip
I wonder this example does not use access token to retrieve Facebook User Info. It use classes inherits from the masterpage. As I am new to ASP.NET, I don't know how to retrieve Facebook user info. Can someone give me and suggestion or explain...... Thanks,
My finding so far indicate that basic information cannot be accessed unless one has either 'userid' or 'username' as in this post.
If one has to try and fetch basic information using following url, then access_token is needed
http://graph.facebook.com/me
Perform an HTTP GET to https://graph.facebook.com/{userid} or HTTP GET to https://graph.facebook.com/{username}
Examples: Click the link below to see the JSON response.
https://graph.facebook.com/4
https://graph.facebook.com/zuck
Pretty cool, eh? And no token needed to get at this public info.
You can get more info on this here: https://developers.facebook.com/docs/reference/api
I have been trying to subscribe to real-time updates for the past week and I have been unsuccessful.
When I do the HTTP post (using rest-client) to URL:
https://graph.facebook.com/<app-id>/subscriptions
...I get this error message as response:
{"error":{"message":"(#100) The parameter object is required","type":"OAuthException"}}
My header parameters were as follows:
access_token=***,
object=user,
fields=friends,
callback_url=https://aaa.appspot.com,
verify_token=(app secret key)
I'm not able to find where I'm going wrong.
Somebody please kindly guide/help me figure my mistake.
The below link was used as a reference.
http://www.fb-developers.info/tech/fb_dev/tutorial/bytopic/realtime_upd_02.php
Thanks you for your time in advance.
You need to send your request to https://graph.facebook.com/appid/subscriptions and not https://graph.facebook.com/subscriptions - although that might be an error in your question and not your code!
EDIT: I just checked the markup for your question and you do have appid in the URL, it just wasn't displaying properly
How are you getting the access token? You must use an application access token and not a user access token, i.e. retrieve the access token from https://graph.facebook.com/oauth/access_token?client_id=<APP_ID>&client_secret=<APP_SECRET>&grant_type=client_credentials
https://developers.facebook.com/docs/reference/api/realtime/ is the official documentation, that might be more up to date than the link you've been using.