Explain the parameters in GitHub Gist raw_url attribute - github-api

I am working with the GitHub GIST API. I came across raw_url attribute which is given for each file in a gist. I wanted to what all the parameters in the URL mean.
Example raw_url: https://gist.githubusercontent.com/algomaster99/d75743336c68306f242ea7ec846f55e9/raw/243230d8f9f80320d839db1f944ac7918ffdaa68/.block
https://gist.githubusercontent.com/ - Domain from where the file content is fetched.
algomaster99 - User ID
d75743336c68306f242ea7ec846f55e9 - GIST ID
243230d8f9f80320d839db1f944ac7918ffdaa68 - I don't know what is this for exactly.
.block - This is an optional parameter in URL. Works without it too.
Can anyone please elaborate on points 4 and 5?

Component 4 (243230d8f9f80320d839db1f944ac7918ffdaa68) is the revision id, a gist can have multiple revisions so you need the id to point out which revision you want to fetch.
Component 5 (.block) is simply the name of the file in the gist that you want to fetch. I'm not sure why the .block file is retrieved even if you omit it from the path, it could be that the first file is returned when no name is given.

Related

In contentful, how to search in the referenced fields for a particular value of the main content

I am somewhat new to references subject within the Contentful… I am looking for a quick help on how to search for a referenced content using POSTMAN. Thanks in advance, here is the scenario.
Main content_type: “person”, which has two fields 1) name “Short Text” and a 2) “videos” field that is defined as reference, which intern has many such references for "video"s for a given person type of content. The referenced content_type “video” has two fields video “title” and “videoURL” for that video.
I need to build a search API to get the value of “videoURL” based on two criteria i.e person.name from the main content type + video.title from the referenced "video" content type . This is because the same person content can have many “videos” fields pointing to different video contents , however I am interested in a video delivered by a person which has a particular title.
I tried many combinations, but missing the link between the main content person and the child content video. Can you please help me to build this API so that I can use postman API platform , to test using GET request . Thanks a lot I appreciate your help.
I found this from suggestion from contentful website to match
the items[0].fields.videos.sys.id with the "includes.Entry array video.sys.id "
I was able to see physically that we have a matching sysid for video in main content and includes as well, but not able to come up with a suitable GET request to run in the POSTMAN tool.
Any help will be grately appreciated. Thanks again

Get Status Changes for Envelopes

I am trying to use the GET envelopes API, and specifying a folder. My folder_ids parameter is below:
&folder_ids='Sent Items'
I have also tried 'completed' and 'sent_items', but I get the same error:
"message": "The request contained at least one invalid parameter. folder_ids must be a comma separated list of either valid folder Guids or 'awaiting_my_signature', 'completed', 'draft', 'drafts', 'expiring_soon', 'inbox', 'out_for_signature', 'recyclebin', 'sentitems' or 'waiting_for_others'."
Does anybody know what I am doing wrong for my filter?
When specifying a folderId it needs to be in a GUID format, unfortunately you cannot request envelopes based on the name of the folder.
The good news is that if you're looking for sent items there's another parameter you can use that is a bit more universal:
envelopes?from_date=8-1-2021&to_date=9-3-2021&folder_types=sentitems
I also tested folder_ids and it looks like the value for the sentitems folder os 'sentitems' there as well. You may want to consider opening a case with us to go over the process in realtime at https://support.docusign.com.
Regards,
Matt

Docusign API: Searching for a given Envelope/Envelopes using Custom Field

How do we compose a get url to get an envelope or envelopes that contain a given custom field. I tried to compose a get url as one shown below but not getting the desired results (i tried to follow the documentation here -> https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges but I think i am not passing the custom field to the query string correctly
https://demo.docusign.net/restapi/v2.1/accounts/ACCOUNT_ID_NUMBER/envelopes?from_date=2019-12-05&folder_types=sentitems&status=completed&custom_field=[SignerEmail=john.doe#email.com]
You're using the right API call. Try it without the square brackets and encode the value.
Eg
... &custom_field=SignerEmail%3Djohn.doe%40email.com
The above is untested. If it doesn't work, we'll dig into it further
Important: are you trying to find envelopes that have a custm_envelop_field (metadata) that you created and you named "SignerEmail"?? If so, the the above is the way to go.
If you're looking for envelopes where a signing recipient's email is john#doe.com, try the general search as Inbar suggests. If it doesn't work, you may need another tactic.
Suggest you read here:
https://developers.docusign.com/esign-rest-api/guides/concepts/envelopes/search
the parameter is called search_text and would search everything including custom fields. There's no need to separately specify custom fields.
Something like this:
https://demo.docusign.net/restapi/v2.1/accounts/ACCOUNT_ID_NUMBER/envelopes?search_text=[SignerEmail=john.doe#email.com]

Netsuite 2.0 Rest API Call giving error while fetching custom segment field

I have developed Netsuite Rest API using 2.0 code and in GET method I am returning list of entities. This works ok if the list is not including a field which has custom segment tagged to it.
If I include this field i get below error in reponse
An nlobjSearchColumn contains an invalid column, or is not in proper syntax: custentity..
I have given custom segment permission to the role. Does anyone have similar experience? What is the solution for this?
You should add an example of the code in question. Specifically where the error is being returned from.
I have also seen some people say to change the visibility of the field(s) on the record, retest, then reset the display back to normal.
Also, just to clarify, you are not using nlobjectSearchColumn in 2.0, correct? That is a 1.0 function, not a 2.0 function. The 2.0 version is s.createColumn.

Add finding attribute by name in Opencart Admin panel: Catalog - Attributes - Attributes

How to implement Attribute to find his own name in the admin area in Opencart : Products - Attributes - Attributes? Is that there is a separate field and simply by driving into the field and displays the name of the attribute is an attribute, as usual searching for items in the admin by name, but only with attribute
It's hard to understand what you are asking, but if you are trying to use attributes for products then you must first define them at catalog>attributes>attributes.
To List attributes in the Products tab you will need edit these files
admin>view>template>catalog>product_form.tpl
admin>controller>catalog>product.php
If your understanding of PHP or Opencart isn't very strong it will help you to copy data from the attribute.php controller to the product.php controller.
As for the search function, this is something I haven't done before but you could try using the search function on the front of the website as reference.
I recommend working through this as best you can then asking more questions if or when you get stuck.
*Update
Ok so since HTML is your strenth it will be smartest to start from there. Open any of these files (the ones that have the data you need).
admin>view>template>catalog>attribute_form.tpl
admin>view>template>catalog>attribute_group_form.tpl
admin>view>template>catalog>attribute_group_list.tpl
admin>view>template>catalog>attribute_list.tpl
Then work backwards with what you see. The tpl will show variables that look like $attribute, track these back to
admin>controller>catalog>attribute.php
admin>controller>catalog>attribute_group.php
And you will see how all the code is used to pull the data from the model and format it if necessary.

Resources